From 0ab6b734407f897994d84cfaee12bd1f60159397 Mon Sep 17 00:00:00 2001 From: biharck Date: Wed, 24 Apr 2019 22:23:06 -0300 Subject: [PATCH] fixing cors issue --- docker/nginx-proxy/conf/nginx.conf | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/docker/nginx-proxy/conf/nginx.conf b/docker/nginx-proxy/conf/nginx.conf index bf1578919..de38c7f00 100644 --- a/docker/nginx-proxy/conf/nginx.conf +++ b/docker/nginx-proxy/conf/nginx.conf @@ -21,8 +21,9 @@ http { # # Tell client that this pre-flight info is valid for 20 days # + add_header 'Access-Control-Allow-Headers' 'Authorization'; + add_header 'Access-Control-Allow-Credentials' true; add_header 'Access-Control-Max-Age' 1728000; - add_header 'Content-Type' 'text/plain; charset=utf-8'; add_header 'Content-Length' 0; return 204; } @@ -37,9 +38,11 @@ http { 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'; + add_header 'Access-Control-Allow-Headers' 'Authorization'; + add_header 'Access-Control-Allow-Credentials' true; } - proxy_pass http://orthanc:8442; + proxy_pass http://orthanc:8042; } }