The Wayback Machine - https://web.archive.org/web/20201016053906/https://github.com/Kong/kong/issues/6051
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 OPTIONS(Preflight request) request should return 204 #6051

Open
dzmitry-lahoda opened this issue Jun 24, 2020 · 0 comments · May be fixed by #6208
Open

CORS OPTIONS(Preflight request) request should return 204 #6051

dzmitry-lahoda opened this issue Jun 24, 2020 · 0 comments · May be fixed by #6208

Comments

@dzmitry-lahoda
Copy link

@dzmitry-lahoda dzmitry-lahoda commented Jun 24, 2020

Next line returns 200 as status

local HTTP_OK = 200

Internet says it should return 204:

Internet changed its mind since 2018 #4029

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
@thehanimo thehanimo linked a pull request that will close this issue Aug 11, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
2 participants
You can’t perform that action at this time.