#asknostr Ok have i got my NIP-05 right?
How can i verify that it works?
Login to reply
Replies (35)
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.
Ok thanks, I have changed this now, Better?
Excuse a noob question but where can i find my recommended relays?
Working


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)
nostr.watch
it's works 🎉
it's getting a CORS error
Please explain to a nostr-noob
your server that hosts the NIP-05 needs to include this header in the response:
access-control-allow-origin: *
Still CORS error here. This is part of why I don't use NIP-05 🤷♂️Thanks, but I have no idea what this means. 🫤
how are you hosting your NIP-05?
On my web-hotel
can you control the HTTP response headers?
I cat find any settings for that.
is this some kind of free hosting site?
you could switch to Vercel. it's free and no CORS error
<?php
header("Access-Control-Allow-Origin: *")
echo file_get_contents("nip05.json")
i will check with my web host support.
does it support PHP?
Nice catch, that explains why I see a lot of profiles with the "!" next to them in NoStrudel. Never paid attention before, good to know!
CORS errors everywhere. it's only an issue in web clients
Yes i think so
can you try this?
<?php
header("Access-Control-Allow-Origin: *");
?>
Where shall i put it?
couldn't tell you, I don't work with PHP myself
thanks for the satoshis 🫂
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.
Nevermind, i got it to work ;) Wooohooo..
Thanks for all your help!
I had placed the .htaccess file in the worong place 😉
I still see the CORS error
I guess something is wrong with noStrudel, because I see your json is fetching properly and has the correct Access-Control-Allow-Origin header
Thats funny, This morning I got the check mark on my profile. And everything looked good. I havent changed anything since and now its gone? "poof"
I don't understand it! according to this you are good:
but some clients still display the error
CORS Tester - Test a URL for valid CORS headers
Use this little tool to test a URLs CORS headers. Test CORS by HTTP method. Shows header information and gives tips on fixing CORS issues.
Yes very funny. I got the check mark this this morning and now its gone. I haven´t changed anything since then. Maybe it will come back again 😄
