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

Update preflight response status to http.StatusNoContent (204) #101

Merged
merged 1 commit into from Jun 19, 2020

Conversation

sc0Vu
Copy link
Contributor

@sc0Vu sc0Vu commented Jun 19, 2020

Thanks for this library, it works!

When I compare this library with javascript CORS implementation, I saw they return 204 instead of 200 when user send preflight request.

Not sure whether status 200 will make browsers read the request body. It might be better to return 204?

In this PR, I change preflight status to http.StatusNoContent (204).

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