feat: accept PUT method

This commit is contained in:
Rainer Killinger
2020-11-19 13:17:26 +01:00
parent 56cd8d2ab7
commit 59db3b5c50
2 changed files with 2 additions and 2 deletions

View File

@@ -1,6 +1,6 @@
add_header 'Access-Control-Allow-Origin' '*';
add_header 'Access-Control-Allow-Credentials' 'true';
add_header 'Access-Control-Allow-Methods' 'GET, POST, OPTIONS';
add_header 'Access-Control-Allow-Methods' 'GET, POST, OPTIONS, PUT';
add_header 'Access-Control-Allow-Headers' 'DNT,X-Mx-ReqToken,Keep-Alive,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,X-StApps-Version';
add_header 'Access-Control-Max-Age' 1728000;
add_header 'Content-Type' 'text/plain charset=UTF-8';

View File

@@ -33,7 +33,7 @@ location {{{ route }}} {
{{{ cors }}}
return 503;
}
limit_except GET OPTIONS POST {
limit_except GET OPTIONS POST PUT {
deny all;
}
# backend is available