How to set export CORS_ENABLED="true" export CORS_ORIGIN="https://github.io"
-
SO, I'm using this to host a nostr nip5 profile in a /public/.well-known/nostr.json file. When I check it with https://cors-test.codehappy.dev/ to see if CORS setup is right, it fails and won't work with CORS.
SO, I have to set the
access-control-allow-originheader set to*. How do I do that in this app?? I need to edit an nginx config file or something. So to make the weird title make sense:export CORS_ENABLED="true" export CORS_ORIGIN="*" -
Not sure I fully understand the target setup you intend to have. But to enable CORS on the github pages app is only really useful if some code running in another domain would call the REST API of the github pages app, which I am not sure it even has. But I might be misunderstanding here.
If CORS is indeed needed, then the app coder (github pages) would need to support responding those pre-flight OPTIONS check queries by the browser.
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login