mirror of
https://gitlab.com/davical-project/davical.git
synced 2026-11-29 08:56:03 +00:00
Add Content-Security-Policy header to sample Apache2 config files
We now support running with a strict self CSP, let's provide that!
This commit is contained in:
1 parent
35641b099a
commit
ffe5ed24ad
3 files changed
+14
-1
No files matched your search
@@ -25,4 +25,9 @@ Listen 127.0.1.1:80
|
||||
RewriteCond %{REQUEST_URI} !^/$
|
||||
RewriteCond %{REQUEST_URI} !\.(php|css|png|gif|js|jpg|ico)
|
||||
RewriteRule ^(.*)$ /caldav.php$1 [NC,L]
|
||||
</VirtualHost>
|
||||
|
||||
# All content for our UI should be served locally.
|
||||
<FilesMatch "(admin|help|iSchedule|index|metrics|public|setup|tools|upgrade).php">
|
||||
Header set Content-Security-Policy "default-src 'none'; img-src 'self' data:; media-src 'self'; script-src 'self'; style-src 'self' 'unsafe-inline' data:; font-src 'self' data:; object-src 'self'; base-uri 'self'; connect-src 'self'; form-action 'self' sis.redsys.es; frame-ancestors 'self'"
|
||||
</FilesMatch>
|
||||
</VirtualHost>
|
||||
Reference in new issue
Block a user