From 4bf5ce419067100d60b109dd304e747c03c69859 Mon Sep 17 00:00:00 2001 From: Sami Samhuri Date: Mon, 10 Sep 2018 21:23:49 -0700 Subject: [PATCH] update CSP and add Referrer-Policy --- public/.htaccess | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/public/.htaccess b/public/.htaccess index 52dc021..68d32dd 100644 --- a/public/.htaccess +++ b/public/.htaccess @@ -36,7 +36,10 @@ 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" +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; form-action 'none'" + +# https://infosec.mozilla.org/guidelines/web_security#referrer-policy +Header set Referrer-Policy "no-referrer, strict-origin-when-cross-origin" ################ ### Rewrites ###