From a3b304a6312b2460490883297f9a3f1ea700d396 Mon Sep 17 00:00:00 2001 From: Roberto Alsina Date: Sun, 4 Jun 2023 12:49:47 -0300 Subject: [PATCH] Return 200 in OPTIONS with the proper headers for faas --- nginx.conf | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/nginx.conf b/nginx.conf index 034204b..01413d0 100644 --- a/nginx.conf +++ b/nginx.conf @@ -41,6 +41,11 @@ server { add_header 'Access-Control-Allow-Origin' '*'; add_header 'Access-Control-Allow-Headers' '*'; add_header 'Access-Control-Allow-Credentials' 'true'; + add_header 'Allow' 'POST, GET, OPTIONS'; + + if ($request_method = 'OPTIONS' ) { + return 200; + } location / { proxy_pass http://pinky.ralsina.github.beta.tailscale.net:8082;