Commit a0ad4ca2 authored by omega8cc's avatar omega8cc

Issue #1472460 by dmiric and #1524738 by flexgrip - Nginx configuration denies...

Issue #1472460 by dmiric and #1524738 by flexgrip - Nginx configuration denies HTTP request methods: PUT, DELETE and OPTIONS and it breaks services/REST.
parent 2f555585
......@@ -14,7 +14,7 @@ if ($is_crawler) {
###
### Deny not compatible request methods without 405 response.
###
if ( $request_method !~ ^(?:GET|HEAD|POST)$ ) {
if ( $request_method !~ ^(?:GET|HEAD|POST|PUT|DELETE|OPTIONS)$ ) {
return 403;
}
......
......@@ -14,7 +14,7 @@ if ($is_crawler) {
###
### Deny not compatible request methods without 405 response.
###
if ( $request_method !~ ^(?:GET|HEAD|POST)$ ) {
if ( $request_method !~ ^(?:GET|HEAD|POST|PUT|DELETE|OPTIONS)$ ) {
return 403;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment