This commit is contained in:
2025-01-24 14:39:31 +02:00
parent e34fcf9f9c
commit 2bceaaa906

View File

@@ -158,14 +158,14 @@ http {
# Handle preflight OPTIONS requests
if ($request_method = OPTIONS ) {
# Add CORS headers for preflight request
add_header 'Access-Control-Allow-Origin' "$http_origin" always;
add_header 'Access-Control-Allow-Origin' "https://app.mzansi-innovation-hub.co.za" 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;
return 204;
}
add_header 'Access-Control-Allow-Origin' "$http_origin" always;
add_header 'Access-Control-Allow-Origin' "https://app.mzansi-innovation-hub.co.za" always;
add_header 'Access-Control-Allow-Headers' 'Authorization, Content-Type' always;
proxy_pass http://MIH-AI:11434/;