Update doc
This commit is contained in:
parent
4b655fc9ed
commit
6a2a6a7dc1
@ -37,11 +37,18 @@ server {
|
|||||||
server_name justwatch.example.com;
|
server_name justwatch.example.com;
|
||||||
|
|
||||||
location / {
|
location / {
|
||||||
|
if ($request_method = OPTIONS ) {
|
||||||
|
return 200 'OK';
|
||||||
|
}
|
||||||
|
|
||||||
root /dev/null;
|
root /dev/null;
|
||||||
proxy_pass https://apis.justwatch.com/;
|
proxy_pass https://apis.justwatch.com/;
|
||||||
proxy_set_header 'Origin' 'apis.justwatch.com';
|
proxy_set_header 'Origin' 'apis.justwatch.com';
|
||||||
|
|
||||||
add_header 'Access-Control-Allow-Origin' '*';
|
add_header 'Access-Control-Allow-Origin' '*';
|
||||||
|
add_header 'Access-Control-Allow-Credentials' 'true';
|
||||||
|
add_header 'Access-Control-Allow-Headers' 'content-type';
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
Loading…
Reference in New Issue
Block a user