Add CORS headers to vlw API #6
1 changed files with 6 additions and 1 deletions
|
@ -6,6 +6,11 @@ server {
|
|||
include snippets/vlw.se-ssl;
|
||||
|
||||
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;
|
||||
}
|
||||
}
|
Loading…
Add table
Reference in a new issue