To disable the OPTIONS method in Nginx add the following config:
|
1 2 3 4 |
if ($request_method ~ ^(OPTIONS)$ ) { return 403; } |
The result can be tested with curl:
|
1 |
curl -X OPTIONS https://domain.com |
To disable the OPTIONS method in Nginx add the following config:
|
1 2 3 4 |
if ($request_method ~ ^(OPTIONS)$ ) { return 403; } |
The result can be tested with curl:
|
1 |
curl -X OPTIONS https://domain.com |
Talk with a senior engineer for practical recommendations—no obligation.
Reliable Penguin provides managed web hosting, systems administration, website and server migrations, and expert consulting.
Submit the form—or for immediate service call 866-649-7984.