This commit is contained in:
2025-01-24 14:43:00 +02:00
parent 2bceaaa906
commit 5d835c08cc

View File

@@ -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/;