From 7d8165af9d12e9e5aa9d5e13cab9b496a5fb6a7c Mon Sep 17 00:00:00 2001 From: Mikhail Date: Tue, 28 May 2024 13:27:27 +0000 Subject: [PATCH] Update default.conf --- default.conf | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/default.conf b/default.conf index d3632a2..2a41f5b 100644 --- a/default.conf +++ b/default.conf @@ -90,6 +90,22 @@ server { proxy_pass https://10.8.0.6:1488/; } + location /heruvym/v1.0.0/ { + 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,sess,response-type always; + add_header Referrer-Policy unsafe-url always; + add_header Access-Control-Allow-Methods OPTIONS,GET,POST,PATCH,PUT,DELETE; + proxy_set_header Referer $host; + proxy_set_header Origin $http_referer; + proxy_set_header Connection ''; + proxy_http_version 1.1; + chunked_transfer_encoding off; + proxy_buffering off; + proxy_cache off; + proxy_pass https://10.8.0.6:1487/; + } + location /strator/ { if ($request_method = OPTIONS) { add_header Access-Control-Allow-Origin $http_origin always;