dehiv on Nostr: Hi, help needed! i'm trying to set my NIP-05 identifier using my own domain. I've ...
Hi, help needed!
i'm trying to set my NIP-05 identifier using my own domain. I've followed all the steps that are necessary, but it is not working because of a CORS error.
The file /.well-known/nostr.json exists and in the .htaccess file that i have created in the root server I've added the line to set up CORS permissions:
Header set Access-Control-Allow-Origin "*"
... but, when i try to change my NIP-05 (tested in astral and in metadata.nostr.com).. i get the CORS error, and in the browser console i can see that in the response headers is not included Access-Control-Allow-Origin.
(If I load
https://domain/.well-known/nostr.json directly in the browser... the header exists)
Any advice?
Published at
2023-01-10 00:24:51Event JSON
{
"id": "08039c450de6f2ce5eab6b7c2ca59abd3a5b48f4a1ef17d87af1b8d23ed01b21",
"pubkey": "e57b782a7ed0264d532f67a22392636d13f99cc5633ba5dbb754720c91d70e56",
"created_at": 1673310291,
"kind": 1,
"tags": [],
"content": "Hi, help needed!\ni'm trying to set my NIP-05 identifier using my own domain. I've followed all the steps that are necessary, but it is not working because of a CORS error.\n\nThe file /.well-known/nostr.json exists and in the .htaccess file that i have created in the root server I've added the line to set up CORS permissions:\n\nHeader set Access-Control-Allow-Origin \"*\" \n\n... but, when i try to change my NIP-05 (tested in astral and in metadata.nostr.com).. i get the CORS error, and in the browser console i can see that in the response headers is not included Access-Control-Allow-Origin.\n\n(If I load https://domain/.well-known/nostr.json directly in the browser... the header exists)\n\nAny advice?",
"sig": "82e6a2dd5cd80a3e2641b6ce53c8fd496296de443def3d55c42c39d9c2fea7141542ad03df374c618ef62b46095ad70c44364b3d114a62009f2dacb3c16aa921"
}