Return 200 in OPTIONS with the proper headers for faas

This commit is contained in:
Roberto Alsina 2023-06-04 12:49:47 -03:00
parent 6522dd7a05
commit a3b304a631
1 changed files with 5 additions and 0 deletions

View File

@ -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;