Oddbean new post about | logout
 nostr:npub1cygus44llmuj4m7w5yfpgqk83x9lvrtr2qavn26ugsyduzv7jc0qnjw7h8 
Looks like my nip-05 will not work on JS based nostr apps. I use a host provider for my store/domain and this is on their support page:
"requests need to come from a server side application. We don’t support CORS requests."

On one front, I cannot change my cors settings lol and on the other front, NIP-05 specifically states not to do redirects: "endpoint MUST NOT return any HTTP redirects."

Here is my blog on how I setup my hack-y nip-05 workaround. It works if the app pulls down the file and then queries the local-part name to pull the hex npub. Having a spec-requirement that puts work on both the client and server seems weird. Server-side should serve up what is essentially a json file (/.well-known/nostr.json), then the client can query the file as needed, imo. Fiatjaf nostr:npub1am8lycvljp52vmntfvcqcqxvzsyrjegk9a632m7z2dfwzvd8wazqv7vt9v 
https://bitcoinconsulting.us/blog/nostr-verified-squarespace-nip-05