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

Fixes #23135 - Allow cross origin request for /nodeinfo/2.0 API #27413

Merged
merged 1 commit into from Oct 16, 2023

Conversation

palant
Copy link
Contributor

@palant palant commented Oct 15, 2023

As noted in #23135, missing CORS headers on /nodeinfo/2.0 endpoint are an issue for any web pages supposed to work with different Fediverse applications. While the proper approach to determine the software running on a Fediverse instance would be downloading /.well-known/nodeinfo and then /nodeinfo/2.0, the latter currently fails for Mastodon. I’ve hit this issue myself when implementing “Share to Fediverse” functionality.

Adding CORS headers for /nodeinfo/2.0 is trivial. And given that the information produced is public, there is no reason CORS headers shouldn’t be there.

@ClearlyClaire ClearlyClaire merged commit 23f8e93 into mastodon:main Oct 16, 2023
34 checks passed
kmycode pushed a commit to kmycode/mastodon that referenced this pull request Oct 17, 2023
audiodude pushed a commit to audiodude/mastodon that referenced this pull request Oct 23, 2023
000hen pushed a commit to thenapnetwork/nap-mastodon that referenced this pull request Dec 6, 2023
vmstan pushed a commit to vmstan/mastodon that referenced this pull request Dec 14, 2023
vmstan pushed a commit to vmstan/mastodon that referenced this pull request Jan 5, 2024
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.

None yet

2 participants