From 5d835c08cc7918565b995b53951054d3a7b11b94 Mon Sep 17 00:00:00 2001 From: yaso Date: Fri, 24 Jan 2025 14:43:00 +0200 Subject: [PATCH] v3 --- nginx/nginx.conf | 2 ++ 1 file changed, 2 insertions(+) diff --git a/nginx/nginx.conf b/nginx/nginx.conf index 5ea73e88..52fa75ae 100644 --- a/nginx/nginx.conf +++ b/nginx/nginx.conf @@ -159,6 +159,7 @@ http { if ($request_method = OPTIONS ) { # Add CORS headers for preflight request add_header 'Access-Control-Allow-Origin' "https://app.mzansi-innovation-hub.co.za" 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; @@ -166,6 +167,7 @@ http { } add_header 'Access-Control-Allow-Origin' "https://app.mzansi-innovation-hub.co.za" 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/;