feat: simple cors for Presence location connect
This commit is contained in:
parent
4e44e2f39e
commit
6c7b6f95f4
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user