From bfebe2dd9ab54940a0b91e41ff4e5541d628325e Mon Sep 17 00:00:00 2001 From: Mikhail Date: Fri, 19 Apr 2024 09:41:01 +0000 Subject: [PATCH] Update default.conf --- default.conf | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/default.conf b/default.conf index ea269a4..d82e8c3 100644 --- a/default.conf +++ b/default.conf @@ -21,7 +21,7 @@ server { } location /answer/ { - add_header Access-Control-Allow-Origin hbpn.link always; + add_header Access-Control-Allow-Origin $http_origin always; add_header Access-Control-Allow-Credentials true always; add_header Access-Control-Allow-Headers content-type,x-sessionkey always; add_header Access-Control-Expose-Headers x-sessionkey always; @@ -30,7 +30,7 @@ server { } location /squizimages { - add_header Access-Control-Allow-Origin hbpn.link always; + add_header Access-Control-Allow-Origin $http_origin always; add_header Access-Control-Allow-Credentials true always; add_header Access-Control-Allow-Headers content-type always; add_header Access-Control-Allow-Methods GET; @@ -41,6 +41,10 @@ server { } location / { + add_header Access-Control-Allow-Origin $http_origin always; + add_header Access-Control-Allow-Credentials true always; + add_header Access-Control-Allow-Headers content-type always; + add_header Access-Control-Allow-Methods OPTIONS,GET,POST,PUT; proxy_pass http://respondent; }