From a87b87c0dacefece89e857ffc737efe95fb7d2e0 Mon Sep 17 00:00:00 2001 From: yaso Date: Fri, 24 Jan 2025 14:31:01 +0200 Subject: [PATCH] remove cred header --- nginx/nginx.conf | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/nginx/nginx.conf b/nginx/nginx.conf index 625ee039..edb5a054 100644 --- a/nginx/nginx.conf +++ b/nginx/nginx.conf @@ -159,7 +159,6 @@ http { if ($request_method = OPTIONS ) { # Add CORS headers for preflight request add_header 'Access-Control-Allow-Origin' "$http_origin" always; - add_header 'Access-Control-Allow-Credentials' 'true' always; add_header 'Access-Control-Allow-Methods' 'GET, POST, OPTIONS' always; add_header 'Access-Control-Allow-Headers' 'Authorization, Content-Type' always; add_header 'Access-Control-Max-Age' 1728000; @@ -167,9 +166,8 @@ http { } add_header 'Access-Control-Allow-Origin' "$http_origin" always; - add_header 'Access-Control-Allow_Credentials' 'true' always; add_header 'Access-Control-Allow-Headers' 'Authorization, Content-Type' always; - + proxy_pass http://MIH-AI:11434/; }