Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ignore HTTP redirect in nip05 #366

Merged
merged 1 commit into from
Feb 9, 2024
Merged

Conversation

syusui-s
Copy link
Contributor

@syusui-s syusui-s commented Feb 9, 2024

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.

@fiatjaf fiatjaf merged commit 8c78649 into nbd-wtf:master Feb 9, 2024
2 checks passed
@syusui-s syusui-s deleted the nip05-redirect branch February 9, 2024 15:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants