Replies (35)

Awiteb's avatar
Awiteb _@4rs.nl 10 months ago
No, it's didn't work, because your `nostr.json` content is https://prickigakatten.se/.well-known/nostr.json ```json { "names": { "Speedy Gonzales": "f83e8392a4cddf17b56287bb5805b4adf5ce2c66bb9e4e7c8baf9770e519e9a5" } } ``` The nip-5 says: > NIP-05 assumes the <local-part> part will be restricted to the characters a-z0-9-_., case-insensitive. So you shouldn't use a space, you can change it to ```json { "names": { "speedy": "f83e8392a4cddf17b56287bb5805b4adf5ce2c66bb9e4e7c8baf9770e519e9a5" } } ``` And it will works. Also consider to add your recommended relays.
Awiteb's avatar
Awiteb _@4rs.nl 10 months ago
The recommended relays it's a relyas you recommend the clients to search for you in it, your profile, note, ext, any event belong to you. So, you have to choice them, you can find relays at but make sure they are writable. And add the same relays to your client, your client may update your relay list (NIP-65)
Default avatar
npub1m7kq...twu8 10 months ago
<?php header("Access-Control-Allow-Origin: *") echo file_get_contents("nip05.json")
No thank you! for your time and effort 😃 I got a responce from my web-host They recommended that i shall put Header set Access-Control-Allow-Origin "*" in .htaccess in the root folder of my web page. I have now done that but I cant verify if it is working. But im not shure if i just shold pu this text in the file if i need to format it to be readable correctly.
I guess something is wrong with noStrudel, because I see your json is fetching properly and has the correct Access-Control-Allow-Origin header