Revert moving the CSP header to html-head snippet, because of caching issues
This commit is contained in:
parent
457de4a9dd
commit
57f811dbe9
|
@ -1,4 +1,5 @@
|
||||||
<?php
|
<?php
|
||||||
|
header("Content-Security-Policy: default-src 'self'; style-src 'self' 'nonce-nRfqpuKWNuYyUAFPTr6WVNZk9' https://fonts.googleapis.com; font-src 'self' https://fonts.gstatic.com; frame-src https://www.youtube-nocookie.com; script-src 'self' 'unsafe-eval' 'nonce-nRfqpuKWNuYyUAFPTr6WVNZk9' https://jannikb.aquila.uberspace.de/piwik/; img-src 'self' https://jannikb.aquila.uberspace.de/piwik/");
|
||||||
//header("X-Content-Type-Options: nosniff"); // enabled at server-side
|
//header("X-Content-Type-Options: nosniff"); // enabled at server-side
|
||||||
//header("X-Frame-Options: deny"); // enabled at server-side
|
//header("X-Frame-Options: deny"); // enabled at server-side
|
||||||
//header("X-Xss-Protection: 1; mode=block"); // enabled at server-side
|
//header("X-Xss-Protection: 1; mode=block"); // enabled at server-side
|
||||||
|
|
|
@ -5,8 +5,6 @@
|
||||||
// copyright: Jannik Beyerstedt | https://jannikbeyerstedt.de
|
// copyright: Jannik Beyerstedt | https://jannikbeyerstedt.de
|
||||||
// license: http://www.gnu.org/licenses/gpl-3.0.txt GPLv3 License
|
// license: http://www.gnu.org/licenses/gpl-3.0.txt GPLv3 License
|
||||||
// -------------------------------------------
|
// -------------------------------------------
|
||||||
header("Content-Security-Policy: default-src 'self'; style-src 'self' 'nonce-nRfqpuKWNuYyUAFPTr6WVNZk9' https://fonts.googleapis.com; font-src 'self' https://fonts.gstatic.com; frame-src https://www.youtube-nocookie.com; script-src 'self' 'unsafe-eval' 'nonce-nRfqpuKWNuYyUAFPTr6WVNZk9' https://jannikb.aquila.uberspace.de/piwik/; img-src 'self' https://jannikb.aquila.uberspace.de/piwik/");
|
|
||||||
|
|
||||||
if( $page->isHomePage() ) {
|
if( $page->isHomePage() ) {
|
||||||
$title = $site->title()->html();
|
$title = $site->title()->html();
|
||||||
}else if ($page->depth() == 2) {
|
}else if ($page->depth() == 2) {
|
||||||
|
|
|
@ -5,8 +5,6 @@
|
||||||
// copyright: Jannik Beyerstedt | https://jannikbeyerstedt.de
|
// copyright: Jannik Beyerstedt | https://jannikbeyerstedt.de
|
||||||
// license: http://www.gnu.org/licenses/gpl-3.0.txt GPLv3 License
|
// license: http://www.gnu.org/licenses/gpl-3.0.txt GPLv3 License
|
||||||
// -------------------------------------------
|
// -------------------------------------------
|
||||||
header("Content-Security-Policy: default-src 'self'; style-src 'self' 'nonce-nRfqpuKWNuYyUAFPTr6WVNZk9' https://fonts.googleapis.com; font-src 'self' https://fonts.gstatic.com; frame-src https://www.youtube-nocookie.com; script-src 'self' 'unsafe-eval' 'nonce-nRfqpuKWNuYyUAFPTr6WVNZk9' https://jannikb.aquila.uberspace.de/piwik/; img-src 'self' https://jannikb.aquila.uberspace.de/piwik/");
|
|
||||||
|
|
||||||
if( $page->isHomePage() ) {
|
if( $page->isHomePage() ) {
|
||||||
$title = $site->title()->html();
|
$title = $site->title()->html();
|
||||||
}else if ($page->depth() == 2) {
|
}else if ($page->depth() == 2) {
|
||||||
|
|
Loading…
Reference in a new issue