diff --git a/pillar/role/web_static.sls b/pillar/role/web_static.sls index e301728..aa66ddb 100644 --- a/pillar/role/web_static.sls +++ b/pillar/role/web_static.sls @@ -42,6 +42,8 @@ nginx: - index.htm - location ~* \.(?:ttf|otf|eot|woff)$: - add_header: Access-Control-Allow-Origin "*" + - location ^/chat/: + - add_header: Access-Control-Allow-Origin "chat.opensuse.org" {% if website == 'static' %} - location ~ ^/themes/: - autoindex: 'on'