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

Allow CORS requests to nodeinfo endpoint #8436

Merged
merged 1 commit into from Oct 16, 2023

Conversation

palant
Copy link
Contributor

@palant palant commented Oct 16, 2023

Web applications meant to work with different Fediverse applications need to download /.well-known/nodeinfo and /nodeinfo/2.0 in order to determine what software they are dealing with. Diaspora currently doesn’t allow this to happen on the client side, without CORS headers third-party web pages aren’t allowed to do it. I’ve hit this issue myself when implementing “Share to Fediverse” functionality for my website.

Adding CORS headers is trivial and solves this issue. With the node info being public information, there is no reason why third-party websites shouldn’t have access to it.

@denschub denschub added this to the 1.0.0 milestone Oct 16, 2023
Copy link
Member

@denschub denschub left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fair enough. Thanks for the PR!

@denschub denschub merged commit bb882da into diaspora:develop Oct 16, 2023
13 checks passed
@denschub
Copy link
Member

Merged. We'll release this relatively soon.

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