diff --git a/nginx.conf.sigil b/nginx.conf.sigil index 8a075fe..55a56ef 100644 --- a/nginx.conf.sigil +++ b/nginx.conf.sigil @@ -56,12 +56,11 @@ server { # Custom location block for /connect location /connect { - proxy_pass http://presence-8080/; - {{ $proxy_settings }} - {{ $gzip_settings }} - {{ $cors_headers_options }} - {{ $cors_headers_post }} - {{ $cors_headers_get }} + proxy_pass http://presence-8080/; + add_header 'Access-Control-Allow-Origin' 'https://discoursio-webapp.vercel.app'; + add_header 'Access-Control-Allow-Methods' 'GET, POST, OPTIONS'; + add_header 'Access-Control-Allow-Headers' 'Content-Type, Authorization'; +} } # Error pages