From 6a2a6a7dc154cb6af2fb1c07cb8b9027d1071f6f Mon Sep 17 00:00:00 2001 From: "Phyks (Lucas Verney)" Date: Tue, 5 Mar 2024 21:03:41 +0100 Subject: [PATCH] Update doc --- README.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/README.md b/README.md index 5a936e1..99d7134 100644 --- a/README.md +++ b/README.md @@ -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'; + } } ```