[CORS Plugin] Get a 404 response status on OPTIONS requests

Hi,

I am trying to add the CORS plugin to my Kong API configuration but I struggle a bit with the testing.
Here is my configuration for the plugin on all my routes :

image

I am making a POST XHR request to my Kong from a webpage that has a different domain name than my Kong.

  1. No OPTIONS request is sent by the browser unless I define the Content-Type to ‘application/json’. Would you have an idea why?
  2. When the OPTIONS request is actually sent, I get a 404 with no content whereas I was expecting a 204 No Content as per the plugin seems to do.

Thank you for your help.
Kind regards,
Clément

Hi @ctessier just want to make sure that you aren’t stuck. If you’re an enterprise customer you could get a faster response in the enterprise support portal.