forked from web/portal
harden CSP and integrate CSP+RP into HTTP header
This commit is contained in:
@@ -1,8 +1,15 @@
|
||||
# authentication
|
||||
AuthType Basic
|
||||
AuthName "Geschuetzter Bereich. Zugangsdaten koennen beim AK-IT unbuerokratish angefordert werden."
|
||||
AuthUserFile /home/pacs/ecg00/users/portal/doms/my.ecogood.world/.htpasswd
|
||||
Require valid-user
|
||||
|
||||
# CSP Starter Policy: allows images, scripts, AJAX, and CSS from the same origin, and does not allow any other resources to load (eg object, frame, media, etc).
|
||||
Header set Content-Security-Policy "default-src 'none'; script-src 'self'; connect-src 'self'; img-src 'self'; style-src 'self';"
|
||||
|
||||
# Referrer Policy
|
||||
Header always set Referrer-Policy "no-referrer"
|
||||
|
||||
# redirection depending on the language
|
||||
RewriteEngine on
|
||||
|
||||
|
||||
Reference in New Issue
Block a user