Commit 74a297a2 authored by Till Brehm's avatar Till Brehm
Browse files

Merge branch 'patch-3' into 'stable-3.1'

Add Content-Security-Policy header and friends.

See merge request !824
parents 06cf8f6e b5dd05ad
......@@ -88,8 +88,14 @@ NameVirtualHost *:<tmpl_var name="vhost_port">
<IfModule mod_headers.c>
Header setifempty add Strict-Transport-Security "max-age=15768000"
RequestHeader unset Proxy early
# ISPConfig 3.1 currently requires unsafe-line for both scripts and styles, as well as unsafe-eval
Header set Content-Security-Policy "default-src 'self' 'unsafe-inline' 'unsafe-eval'; img-src 'self' data:; object-src 'none'; upgrade-insecure-requests"
Header set X-Content-Type-Options: nosniff
Header set X-Frame-Options: SAMEORIGIN
Header set X-XSS-Protection: "1; mode=block"
Header always edit Set-Cookie (.*) "$1; HTTPOnly; Secure"
Header setifempty Strict-Transport-Security "max-age=15768000"
RequestHeader unset Proxy early
<tmpl_if name='apache_version' op='>=' value='2.3.3' format='version'>
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment