From 2ad1fd44978646e5809d7cf546dd9619ffc91f42 Mon Sep 17 00:00:00 2001 From: Stasiek Michalski Date: Apr 19 2020 23:08:09 +0000 Subject: Add protocol to the CORS header --- diff --git a/pillar/role/web_static.sls b/pillar/role/web_static.sls index 84c3488..2e869d6 100644 --- a/pillar/role/web_static.sls +++ b/pillar/role/web_static.sls @@ -44,7 +44,7 @@ nginx: - add_header: Access-Control-Allow-Origin "*" {% if website == 'static' %} - location ^/chat/: - - add_header: Access-Control-Allow-Origin "chat.opensuse.org" + - add_header: Access-Control-Allow-Origin "https://chat.opensuse.org" - location ~ ^/themes/: - autoindex: 'on' {% endif %}