pull down to refresh
0 sats \ 2 replies \ @sebastix 2 Mar 2023 \ on: Easiest way to set your self hosted NIP-05 ID on Nostr nostr
By step 3, those instructions apply to when you are running a Apache webserver.
When you are using Nginx as your webserver, you can add this snippet to your server configuration file for setting the CORS on any files in the .well-known directory:
location /.well-known {
if ($request_method = 'GET') {
add_header 'Access-Control-Allow-Origin' '*';
}
}
Thank you for the additional information!
Also, adding after the Step 3., a good practice is checking if the domain is actually accessible with a tool like https://cors-test.codehappy.dev/
reply
I can't seem to get it to work the only thing I did different was I used NameCheap for hosting