From b97a6ac6104f729aa2e815d0fc228f94976b55a2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=90=D0=BB=D0=B5=D0=BA=D1=81=D0=B0=D0=BD=D0=B4=D1=80=20?= =?UTF-8?q?=D0=9F=D1=80=D0=B8=D0=BC=D0=B0=D0=BA=D0=BE=D0=B2?= Date: Sun, 31 Oct 2021 15:59:49 +0300 Subject: [PATCH] fix --- 80.conf | 16 +--------------- 1 file changed, 1 insertion(+), 15 deletions(-) diff --git a/80.conf b/80.conf index f4b0b65..e6775a7 100644 --- a/80.conf +++ b/80.conf @@ -3,21 +3,7 @@ server { server_name inno-ijl.ru; # index index.php index.html index.htm index.nginx-debian.html; - # location /api/ { - # # add_header 'Access-Control-Allow-Origin' '*'; - # # add_header 'Access-Control-Allow-Methods' 'GET, POST, OPTIONS'; - # # add_header 'Access-Control-Allow-Headers' 'DNT,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,Range'; - # # add_header 'Access-Control-Expose-Headers' 'Content-Length,Content-Range'; - # proxy_pass http://backend/; - # } - - # location /multystub/ { - # # add_header 'Access-Control-Allow-Origin' '*'; - # add_header 'Access-Control-Allow-Methods' 'GET, POST, OPTIONS'; - # add_header 'Access-Control-Allow-Headers' 'DNT,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,Range'; - # add_header 'Access-Control-Expose-Headers' 'Content-Length,Content-Range'; - # proxy_pass http://multystub/; - # } + include "parts/api-multystub.conf"; location / { add_header 'Access-Control-Allow-Origin' '*';