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
Comments
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


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