Added OPTIONS as per review comment
@@ -15,7 +15,7 @@ server {
if ($ssl_protocol = "") {
return 308 https://$host$request_uri;
}
- if ($request_method !~ ^(GET|HEAD|POST|PUT|DELETE)$ ) {
+ if ($request_method !~ ^(GET|HEAD|POST|PUT|DELETE|OPTIONS)$ ) {
return 405;
}
index index.html;
@@ -28,7 +28,7 @@ server {
listen *:443 ssl;
server_tokens off;
- if ($request_method !~ ^(GET|HEAD|POST|PUT|DELETE)$ ) {
+ if ($request_method !~ ^(GET|HEAD|POST|PUT|DELETE|OPTIONS)$ ) {
return 405;
}
