Merge pull request #21220 from owncloud/remove-to-make-apache24-happy
Use setifempty to please incompatible httpd versions
This commit is contained in:
commit
48ae3997d4
|
@ -14,9 +14,12 @@
|
||||||
Header set X-Frame-Options "SAMEORIGIN"
|
Header set X-Frame-Options "SAMEORIGIN"
|
||||||
SetEnv modHeadersAvailable true
|
SetEnv modHeadersAvailable true
|
||||||
|
|
||||||
# Add CSP header if not set, used for static resources
|
<IfModule mod_version.c>
|
||||||
Header append Content-Security-Policy ""
|
<IfVersion >= 2.4.7>
|
||||||
Header edit Content-Security-Policy "^$" "default-src 'none'; style-src 'self' 'unsafe-inline'; script-src 'self'"
|
# Add CSP header if not set, used for static resources
|
||||||
|
Header always setifempty Content-Security-Policy "default-src 'none'; style-src 'self' 'unsafe-inline'; script-src 'self'"
|
||||||
|
</IfVersion>
|
||||||
|
</IfModule>
|
||||||
</IfModule>
|
</IfModule>
|
||||||
|
|
||||||
# Add cache control for CSS and JS files
|
# Add cache control for CSS and JS files
|
||||||
|
|
Loading…
Reference in New Issue