From a105b1b7e80a4f1565ce7c76120507792365d8ae Mon Sep 17 00:00:00 2001 From: Sami Samhuri Date: Mon, 3 Dec 2018 11:37:59 -0800 Subject: [PATCH] fix CSP --- public/.htaccess | 2 +- public/_layout.ejs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/public/.htaccess b/public/.htaccess index 3364e4d..59717bf 100644 --- a/public/.htaccess +++ b/public/.htaccess @@ -36,7 +36,7 @@ Header set X-Content-Type-Options "nosniff" Header set X-Frame-Options "DENY" # Content Security Policy generated by Mozilla's CSP Toolkit -Header set Content-Security-Policy "default-src 'none'; img-src 'self' https://p.typekit.net; script-src 'self' 'unsafe-inline' https://ajax.googleapis.com https://api.github.com https://gist.github.com https://use.typekit.net; style-src 'unsafe-inline' https://assets-cdn.github.com https://netdna.bootstrapcdn.com; base-uri 'none'; frame-ancestors 'none'; form-action 'none'" +Header set Content-Security-Policy "default-src 'none'; img-src 'self' data: https://p.typekit.net; font-src 'self' https://use.typekit.net https://netdna.bootstrapcdn.com; script-src 'self' 'unsafe-inline' https://ajax.googleapis.com https://api.github.com https://gist.github.com https://use.typekit.net; style-src 'unsafe-inline' https://assets-cdn.github.com https://netdna.bootstrapcdn.com; base-uri 'none'; frame-ancestors 'none'; form-action 'none'" # https://infosec.mozilla.org/guidelines/web_security#referrer-policy Header set Referrer-Policy "no-referrer, strict-origin-when-cross-origin" diff --git a/public/_layout.ejs b/public/_layout.ejs index 66b2ef3..0355ddd 100644 --- a/public/_layout.ejs +++ b/public/_layout.ejs @@ -53,7 +53,7 @@ - +