Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upCORS OPTIONS(Preflight request) request should return 204 #6051
Labels
Comments
thehanimo
added a commit
to thehanimo/kong
that referenced
this issue
Aug 11, 2020
The appropriate status code for a preflight request is 204 as per the updated Mozilla guidelines (https://developer.mozilla.org/en-US/docs/Glossary/Preflight_request). We previously used to send HTTP 200. * return 204 for preflight response instead of 200 Fix Kong#6051
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Next line returns 200 as status
kong/kong/plugins/cors/handler.lua
Line 13 in c817fad
Internet says it should return 204:
Internet changed its mind since 2018 #4029