Disable OPTIONS method in NGINX By admin on January 2, 2019 in Nginx To disable the OPTIONS method in Nginx add the following config: if ($request_method ~ ^(OPTIONS)$ ) { return 403; } 1234 if ($request_method ~ ^(OPTIONS)$ ){ return 403;} The result can be tested with curl: curl -X OPTIONS https://domain.com 1 curl -X OPTIONS https://domain.com Related posts: Fixing “504 Gateway Timeout” Errors On Plesk With Nginx Set X-Robots-Tag Header On Plesk/Nginx Plesk 12.5 Protected Directories Break Nginx/PHP-FPM ServerAlias On Nginx Canonical Rewrite Rule For Nginx