From 08f10cfa0090dd5fa891264d818098455558b866 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matthias=20St=C3=BCbinger?= Date: Fri, 4 Dec 2020 20:18:08 +0100 Subject: [PATCH] CodiMD: allow cors for origin stuebinm.4future.dev (a:f cluster site) Allow cors, so that the about:future cluster site can fetch its content from a codimd pad (which is currently a preview at https://stuebinm.4future.dev/about-future-website/ but will be moved to a better position once there's a domain for that). --- configuration/hosts/hainich/services/codimd.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/configuration/hosts/hainich/services/codimd.nix b/configuration/hosts/hainich/services/codimd.nix index 0b33e2d..7749b93 100644 --- a/configuration/hosts/hainich/services/codimd.nix +++ b/configuration/hosts/hainich/services/codimd.nix @@ -72,6 +72,7 @@ proxy_set_header X-Forwarded-Host $http_host; proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection $http_connection; + proxy_add_header Access-Control-Allow-Origin "https://stuebinm.4future.de"; proxy_buffering off; ''; };