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 preflight OPTIONS request without origin #109

Closed
wants to merge 1 commit into from
Closed

allow preflight OPTIONS request without origin #109

wants to merge 1 commit into from

Conversation

enchant97
Copy link

This fixes the issue #86 where requests for preflight without an origin set would result in 404. Now when a request with the OPTIONS method is sent without an origin, the handlePreflight method will be called.

Maybe this feature should not always be enabled, maybe we could instead have a config for it? I am happy to add this if needed.

@jub0bs
Copy link

jub0bs commented Oct 25, 2022

By definition, a preflight request always contains an Origin header. If an OPTIONS request doesn't contain an Origin header, it is not a preflight request.

@enchant97 enchant97 closed this by deleting the head repository Mar 14, 2023
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