nbd-wtf / nostr-tools

Tools for developing Nostr clients.
The Unlicense
705 stars 197 forks source link

ignore HTTP redirect in nip05 #366

Closed syusui-s closed 8 months ago

syusui-s commented 8 months ago

According to NIP-05 specification, the implementation must ignore HTTP redirect.

https://github.com/nostr-protocol/nips/blob/master/05.md#security-constraints

fetch API accepts the option as the second parameter. { redirect: 'error' } will cause an error if the endpoint returns 302 or something like that.