From a41170b7f6158aa1bd54fac967099a8ad227635a Mon Sep 17 00:00:00 2001 From: Mikhail Date: Sun, 7 May 2023 19:29:36 +0000 Subject: [PATCH] Update file default.conf --- default.conf | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/default.conf b/default.conf index af14250..0332803 100644 --- a/default.conf +++ b/default.conf @@ -22,6 +22,9 @@ server { add_header Access-Control-Allow-Credentials true always; } location /user { + 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,authorization always; proxy_pass http://pena-auth-service:8080; } @@ -36,6 +39,9 @@ server { } location /heruvym/ { + 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,authorization always; proxy_set_header Referer $host; proxy_set_header Origin $http_origin; proxy_set_header Connection ''; @@ -47,6 +53,9 @@ server { } location /strator/ { + 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,authorization always; proxy_pass http://hub-admin-backend-service:8005/; } location /feedback/ {