From 57f811dbe93b548c00fc7e1f232df0f2c39bd624 Mon Sep 17 00:00:00 2001 From: Jannik Beyerstedt Date: Sat, 15 Oct 2016 20:50:49 +0200 Subject: [PATCH] Revert moving the CSP header to html-head snippet, because of caching issues --- site/config/config.php | 1 + site/snippets/base/html-head.php | 2 -- site/snippets/blog-htmlhead.php | 2 -- 3 files changed, 1 insertion(+), 4 deletions(-) diff --git a/site/config/config.php b/site/config/config.php index 17d1dc1..a2553bc 100644 --- a/site/config/config.php +++ b/site/config/config.php @@ -1,4 +1,5 @@ isHomePage() ) { $title = $site->title()->html(); }else if ($page->depth() == 2) { diff --git a/site/snippets/blog-htmlhead.php b/site/snippets/blog-htmlhead.php index e4b2a16..646bc07 100644 --- a/site/snippets/blog-htmlhead.php +++ b/site/snippets/blog-htmlhead.php @@ -5,8 +5,6 @@ // copyright: Jannik Beyerstedt | https://jannikbeyerstedt.de // 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() ) { $title = $site->title()->html(); }else if ($page->depth() == 2) {