From a4069afb0d3237278caa09e521df0fb0950a982e Mon Sep 17 00:00:00 2001 From: Christian Boltz Date: Apr 19 2020 22:27:08 +0000 Subject: Merge branch 'hellcp/static-chat' into 'production' Allow chat to access content from /chat/ See merge request infra/salt!387 --- diff --git a/pillar/role/web_static.sls b/pillar/role/web_static.sls index e301728..84c3488 100644 --- a/pillar/role/web_static.sls +++ b/pillar/role/web_static.sls @@ -43,6 +43,8 @@ nginx: - location ~* \.(?:ttf|otf|eot|woff)$: - add_header: Access-Control-Allow-Origin "*" {% if website == 'static' %} + - location ^/chat/: + - add_header: Access-Control-Allow-Origin "chat.opensuse.org" - location ~ ^/themes/: - autoindex: 'on' {% endif %}