Update doc

This commit is contained in:
Lucas Verney 2024-03-05 21:03:41 +01:00
parent 4b655fc9ed
commit 6a2a6a7dc1
1 changed files with 7 additions and 0 deletions

View File

@ -37,11 +37,18 @@ server {
server_name justwatch.example.com;
location / {
if ($request_method = OPTIONS ) {
return 200 'OK';
}
root /dev/null;
proxy_pass https://apis.justwatch.com/;
proxy_set_header 'Origin' 'apis.justwatch.com';
add_header 'Access-Control-Allow-Origin' '*';
add_header 'Access-Control-Allow-Credentials' 'true';
add_header 'Access-Control-Allow-Headers' 'content-type';
}
}
```