mirror of
https://github.com/samsonjs/samhuri.net.git
synced 2026-03-25 09:05:47 +00:00
update CSP and add Referrer-Policy
This commit is contained in:
parent
72867fe3fb
commit
4bf5ce4190
1 changed files with 4 additions and 1 deletions
|
|
@ -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 ###
|
||||
|
|
|
|||
Loading…
Reference in a new issue