fix: add CORS headers to vlw API

This commit is contained in:
Victor Westerlund 2025-03-17 11:13:46 +01:00
parent 49e8859cec
commit 99321231d7

View file

@ -6,6 +6,11 @@ server {
include snippets/vlw.se-ssl; include snippets/vlw.se-ssl;
location / { location / {
add_header 'Access-Control-Allow-Origin' $http_origin;
add_header 'Access-Control-Allow-Credentials' 'true';
add_header 'Access-Control-Allow-Methods' 'GET, POST, PATCH, PUT, OPTIONS';
add_header 'Access-Control-Allow-Headers' 'Authorization, Origin, Content-Type, Accept';
proxy_pass http://localhost:8001; proxy_pass http://localhost:8001;
} }
} }