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

CORS is broken for HEAD #23137

Open
SoniEx2 opened this issue Jan 17, 2023 · 1 comment
Open

CORS is broken for HEAD #23137

SoniEx2 opened this issue Jan 17, 2023 · 1 comment
Labels
bug Something isn't working

Comments

@SoniEx2
Copy link

SoniEx2 commented Jan 17, 2023

Steps to reproduce the problem

If attempting to fetch HEAD under some circumstances, server doesn't respond properly.

Expected behaviour

Server should respond roughly the same as "GET + no body"

Actual behaviour

Server does not

Detailed description

Trying to fetch HEAD does not set CORS properly for the ld+json activitystreams content type, but activity+json works. GET works for both.

Specifications

Various instances

@SoniEx2 SoniEx2 added the bug Something isn't working label Jan 17, 2023
@SoniEx2
Copy link
Author

SoniEx2 commented Jan 24, 2023

As in, this uses GET for maximum compatibility, but it should be able to use HEAD: https://github.com/fedi-to/activitypub-helper/blob/main/protocol-handler.js

But HEAD is broken.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant