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 %}