Browse Source

add a lax content-security-policy http header - see #905

pull/906/head
David Goodwin 9 months ago
parent
commit
0f53b0343b
Failed to extract signature
  1. 2
      common.php

2
common.php

@ -54,6 +54,8 @@ if (!defined('POSTFIXADMIN')) {
// avoid clickjacking attacks?
header('X-Frame-Options: DENY');
// see https://github.com/postfixadmin/postfixadmin/issues/905
header("Content-Security-Policy: default-src 'self'; script-src 'self' 'unsafe-inline'; style-src 'self' 'unsafe-inline';");
}
}

Loading…
Cancel
Save