Allow CORS for FaaS server
This commit is contained in:
parent
ef9cacb363
commit
7ca1c5f7c4
|
@ -38,6 +38,9 @@ server {
|
||||||
|
|
||||||
server_name faas.ralsina.me;
|
server_name faas.ralsina.me;
|
||||||
|
|
||||||
|
add_header 'Access-Control-Allow-Origin' '*';
|
||||||
|
add_header 'Access-Control-Allow-Credentials' 'true';
|
||||||
|
|
||||||
location / {
|
location / {
|
||||||
proxy_pass http://pinky.ralsina.github.beta.tailscale.net:8082;
|
proxy_pass http://pinky.ralsina.github.beta.tailscale.net:8082;
|
||||||
proxy_set_header X-Forwarded-Host $http_host;
|
proxy_set_header X-Forwarded-Host $http_host;
|
||||||
|
|
Loading…
Reference in New Issue