I have an Nginx server this is returning a 403 when a client uses the HTTP OPTIONS method. It sounds like Nginx does not support the OPTIONS method, but I couldn't find conclusive evidence of this on the Interwebs.

Right now Nginx is running on Centos5. Is it true that Nginx does not support this and is there a module that could be enabled for Nginx to support OPTIONS?



This is not supported in nginx. Your options are to write a module yourself, or wait for someone else to do it. There is a list of official modules and 3rd party modules available on their wiki.


Nginx does indeed support the OPTIONS method. It is specifically mentioned in the documentation for the core module:


You can configure nginx to respond to it on the basis of the value of the $request_method variable.

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Not the answer you're looking for? Browse other questions tagged or ask your own question.