From 59db3b5c50be42ef2d2a4acbad8da2e7d813efd6 Mon Sep 17 00:00:00 2001 From: Rainer Killinger Date: Thu, 19 Nov 2020 13:17:26 +0100 Subject: [PATCH] feat: accept PUT method --- fixtures/cors.template | 2 +- fixtures/visibleRoute.template | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/fixtures/cors.template b/fixtures/cors.template index 7cfbec6e..f1cdf33c 100644 --- a/fixtures/cors.template +++ b/fixtures/cors.template @@ -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'; diff --git a/fixtures/visibleRoute.template b/fixtures/visibleRoute.template index 678eca88..cd27fc00 100644 --- a/fixtures/visibleRoute.template +++ b/fixtures/visibleRoute.template @@ -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