diff --git a/docker/cors.conf b/docker/cors.conf index 14b4c122433e49760fa3bff066f893bb7623afde..0def5bf2a79695f7f7d4e457d50579e2ac0f610b 100644 --- a/docker/cors.conf +++ b/docker/cors.conf @@ -1,6 +1,6 @@ if ($request_method = 'OPTIONS') { add_header 'Access-Control-Allow-Origin' $allowOrigin always; - add_header 'Access-Control-Allow-Methods' 'GET, POST, OPTIONS, DELETE'; + add_header 'Access-Control-Allow-Methods' 'GET, POST, PUT, OPTIONS, DELETE'; # # Custom headers and headers various browsers *should* be OK with but aren't @@ -18,18 +18,18 @@ if ($request_method = 'OPTIONS') { if ($request_method = 'POST') { add_header 'Access-Control-Allow-Origin' $allowOrigin always; add_header 'Access-Control-Allow-Credentials' 'true'; - add_header 'Access-Control-Allow-Methods' 'GET, POST, OPTIONS, DELETE'; + add_header 'Access-Control-Allow-Methods' 'GET, POST, PUT, OPTIONS, DELETE'; add_header 'Access-Control-Allow-Headers' 'DNT,X-CustomHeader,Keep-Alive,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,key'; } if ($request_method = 'GET') { add_header 'Access-Control-Allow-Origin' $allowOrigin always; add_header 'Access-Control-Allow-Credentials' 'true'; - add_header 'Access-Control-Allow-Methods' 'GET, POST, OPTIONS, DELETE'; + add_header 'Access-Control-Allow-Methods' 'GET, POST, PUT, OPTIONS, DELETE'; add_header 'Access-Control-Allow-Headers' 'DNT,X-CustomHeader,Keep-Alive,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,key'; } if ($request_method = 'DELETE') { add_header 'Access-Control-Allow-Origin' $allowOrigin always; add_header 'Access-Control-Allow-Credentials' 'true'; - add_header 'Access-Control-Allow-Methods' 'GET, POST, OPTIONS, DELETE'; + add_header 'Access-Control-Allow-Methods' 'GET, POST, PUT, OPTIONS, DELETE'; add_header 'Access-Control-Allow-Headers' 'DNT,X-CustomHeader,Keep-Alive,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,key'; }