Closed syusui-s closed 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.
fetch
{ redirect: 'error' }
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.