mirror of
https://github.com/webmin/webmin.git
synced 2026-08-17 21:00:28 +01:00
Specifically allow only local frames, as Chrome on iOS doesn't load framesets without this http://virtualmin.com/node/33332
This commit is contained in:
@@ -754,7 +754,7 @@ if (!$gconfig{'no_frame_options'}) {
|
||||
print "X-Frame-Options: SAMEORIGIN\n";
|
||||
}
|
||||
if (!$gconfig{'no_content_security_policy'}) {
|
||||
print "Content-Security-Policy: script-src 'self' 'unsafe-inline'\n";
|
||||
print "Content-Security-Policy: script-src 'self' 'unsafe-inline'; frame-src 'self'\n";
|
||||
}
|
||||
if (defined($_[0])) {
|
||||
print "Content-type: text/html; Charset=$_[0]\n\n";
|
||||
|
||||
Reference in New Issue
Block a user