Skip to content

Commit 49d521e

Browse files
author
Till Brehm
committed
Fixed #5341 CSS Styles do not load in ISPConfig UI when no SSL is used
1 parent cc8a3e8 commit 49d521e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

install/tpl/apache_ispconfig.vhost.master

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,11 +89,11 @@ NameVirtualHost *:<tmpl_var name="vhost_port">
8989

9090
<IfModule mod_headers.c>
9191
# ISPConfig 3.1 currently requires unsafe-line for both scripts and styles, as well as unsafe-eval
92-
Header set Content-Security-Policy "default-src 'self' 'unsafe-inline' 'unsafe-eval'; img-src 'self' data:; object-src 'none'; upgrade-insecure-requests"
92+
<tmpl_var name="ssl_comment">Header set Content-Security-Policy "default-src 'self' 'unsafe-inline' 'unsafe-eval'; img-src 'self' data:; object-src 'none'; upgrade-insecure-requests"
9393
Header set X-Content-Type-Options: nosniff
9494
Header set X-Frame-Options: SAMEORIGIN
9595
Header set X-XSS-Protection: "1; mode=block"
96-
Header always edit Set-Cookie (.*) "$1; HTTPOnly; Secure"
96+
<tmpl_var name="ssl_comment">Header always edit Set-Cookie (.*) "$1; HTTPOnly; Secure"
9797
<IfVersion >= 2.4.7>
9898
Header setifempty Strict-Transport-Security "max-age=15768000"
9999
</IfVersion>

0 commit comments

Comments
 (0)