Return 200 in OPTIONS with the proper headers for faas
This commit is contained in:
parent
6522dd7a05
commit
a3b304a631
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user