CORS? It's always CORS!

Reply to this note

Please Login to reply.

Discussion

I was wondering about that. Lol dammit. Is that something I change in domain/dns? A file upload? Anybody posted how-to fix the CORS issue recently?

depending on your web server or host config.

.htaccess file

Header set Access-Control-Allow-Origin "*"

Iโ€™ma zap the hell outta you if this works

also, redirects (308, etc) are not permitted as per security standards of nip05. this is a simple dumb thing that tripped me up. clients are instructed not to follow redirects. that will yield a red herring CORS issue

also, if this well known json will rarely change, set cache control for aggressive dns/client caching. will save you 100-1000x bandwidth

Muchas gracias amigo!

?raw=true

it depends on your webserver. by the way iris is showing your nip-05 ok.

Just fixed thanks to article shared by #[2] ! ๐Ÿค™

you can add your preferred relays on your nostr.json on your webserver. just check the https://nips.be/5 implementation aka NIP-05. You can add a separate tag on that json file to refer the relays you prefer! Cheers!

Noicee ๐Ÿ™Œ๐Ÿค™

Or developer...

LOL definitely developer

You will be forever! You don't need to accuse yourself! ๐Ÿซก๐Ÿงก

Xiii, no context and I didn't see that someone replied :/ it was supposed to be a joke. I confirm, the common cause is usually CORS