From 91f94d35543c3cc94c3bf644814ec22c1d5c65c3 Mon Sep 17 00:00:00 2001 From: Christian Boltz Date: May 09 2020 19:46:20 +0000 Subject: Merge branch 'hellcp/static-cors-www' into 'production' Allow access to .well-known on www See merge request infra/salt!398 --- diff --git a/pillar/role/web_static.sls b/pillar/role/web_static.sls index f51f64b..940f26e 100644 --- a/pillar/role/web_static.sls +++ b/pillar/role/web_static.sls @@ -48,6 +48,10 @@ nginx: - location ~ ^/themes/: - autoindex: 'on' {% endif %} + {% if website == 'www' %} + - location ~ "^/\.well-known/": + - add_header: Access-Control-Allow-Origin "*" + {% endif %} - error_page: 405 = $uri - error_page: 405 =200 $uri - error_page: 500 502 503 504 /50x.html