mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-09 18:45:54 +02:00
httpd: apply the same security headers on the captive portal instance as we do elsewhere
The Captive Portal should not be framed or leak sensitive detail via Referrers either. Signed-off-by: Peter Müller <peter.mueller@ipfire.org> Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
This commit is contained in:
committed by
Michael Tremer
parent
59fa881ea7
commit
10189aa197
@@ -11,6 +11,8 @@ Listen 1013
|
||||
|
||||
Header always set X-Content-Type-Options nosniff
|
||||
Header always set Content-Security-Policy "default-src 'self'; script-src 'self' 'unsafe-inline' 'unsafe-eval'; style-src 'self' 'unsafe-inline'"
|
||||
Header always set Referrer-Policy strict-origin
|
||||
Header always set X-Frame-Options sameorigin
|
||||
|
||||
ScriptAlias /cgi-bin/ /srv/web/ipfire/cgi-bin/captive/
|
||||
Alias /assets/ /srv/web/ipfire/html/captive/assets/
|
||||
|
||||
Reference in New Issue
Block a user