From 5bc034a7758d6d182f8b1c9aaea838b74dfe737c Mon Sep 17 00:00:00 2001 From: yaso Date: Sat, 25 Jan 2025 13:05:06 +0200 Subject: [PATCH] . --- nginx/nginx.conf | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/nginx/nginx.conf b/nginx/nginx.conf index b8c72047..5b3a9a28 100644 --- a/nginx/nginx.conf +++ b/nginx/nginx.conf @@ -161,14 +161,15 @@ 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-Methods' 'GET, POST, OPTIONS' always; - add_header 'Access-Control-Allow-Headers' 'Authorization, Content-Type, Access-Control-Allow-Origin, Access-Control-Allow-Methods, Access-Control-Allow-Headers' always; + add_header 'Access-Control-Allow-Headers' '*' always; add_header 'Access-Control-Max-Age' 1728000; return 204; } 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, Access-Control-Allow-Origin, Access-Control-Allow-Methods, Access-Control-Allow-Headers' always; + add_header 'Access-Control-Allow-Methods' 'GET, POST, OPTIONS' always + add_header 'Access-Control-Allow-Headers' '*' always; proxy_pass http://MIH-AI:11434/api/;