[sync/mitaka] Don't allow POST requests to the static files

Fuel web is an actually the one page JavaScript based application so
all the POST requests handled by the APIs via AJAX requests.

Change-Id: Iaddad9eb7b13e6a7e590265fe248d27d3ec2b96c
Closes-Bug: #1632701
Signed-off-by: Maksim Malchuk <mmalchuk@mirantis.com>
This commit is contained in:
Maksim Malchuk 2016-10-13 13:48:18 +03:00 committed by Dmitry Ilyin
parent cd2b0719f5
commit a32bcf58bd

View File

@ -71,7 +71,7 @@ server {
}
location / {
if ( $request_method !~ ^(GET|HEAD|POST)$ ) {
if ( $request_method !~ ^(GET|HEAD)$ ) {
return 444;
}
expires -1;