fixed nginx CORS config

This commit is contained in:
renevoorburg
2023-10-13 15:53:06 +02:00
parent adeefc64dd
commit ba7085776f
+1 -1
View File
@@ -106,7 +106,7 @@ location / {
if ($request_method = 'OPTIONS') { if ($request_method = 'OPTIONS') {
add_header 'Access-Control-Allow-Origin' 'https://replayweb.page'; add_header 'Access-Control-Allow-Origin' 'https://replayweb.page';
add_header 'Access-Control-Allow-Methods' 'GET, HEAD, OPTIONS' always; add_header 'Access-Control-Allow-Methods' 'GET, HEAD, OPTIONS' always;
add_header 'Access-Control-Allow-Headers' '*' add_header 'Access-Control-Allow-Headers' '*' ;
return 204; return 204;
} }