Allow CORS for FaaS server

This commit is contained in:
Roberto Alsina 2022-07-19 14:50:07 -03:00
parent ef9cacb363
commit 7ca1c5f7c4
1 changed files with 3 additions and 0 deletions

View File

@ -38,6 +38,9 @@ server {
server_name faas.ralsina.me;
add_header 'Access-Control-Allow-Origin' '*';
add_header 'Access-Control-Allow-Credentials' 'true';
location / {
proxy_pass http://pinky.ralsina.github.beta.tailscale.net:8082;
proxy_set_header X-Forwarded-Host $http_host;