From 7ca1c5f7c4b46d1f908cffbe5ae4188573d949b3 Mon Sep 17 00:00:00 2001 From: Roberto Alsina Date: Tue, 19 Jul 2022 14:50:07 -0300 Subject: [PATCH] Allow CORS for FaaS server --- nginx.conf | 3 +++ 1 file changed, 3 insertions(+) diff --git a/nginx.conf b/nginx.conf index f47d6cd..293433f 100644 --- a/nginx.conf +++ b/nginx.conf @@ -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;