Skip to content

Commit

Permalink
Reduce CSP
Browse files Browse the repository at this point in the history
  • Loading branch information
pgilad committed Nov 18, 2023
1 parent 8ce2443 commit 0ac33be
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gatsby-config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@ const configuration: GatsbyConfig = {
mergeSecurityHeaders: false,
headers: {
"/*": [
"Content-Security-Policy: connect-src 'self' https://github.githubassets.com; default-src 'self'; font-src 'self' data: https://github.githubassets.com https://fonts.gstatic.com https://fonts.googleapis.com; frame-src 'self'; img-src 'self' data: https://github.githubassets.com https://fonts.gstatic.com https://fonts.googleapis.com; media-src 'self'; object-src 'none'; script-src 'self' https://github.githubassets.com 'unsafe-inline'; style-src 'self' data: https://github.githubassets.com https://fonts.gstatic.com https://fonts.googleapis.com 'unsafe-inline'; worker-src 'self'; report-uri https://giladpeleg.report-uri.com/r/d/csp/enforce; report-to default;",
"Content-Security-Policy: base-uri 'self'; connect-src 'self' https://github.githubassets.com; default-src 'self'; font-src 'self' data: https://github.githubassets.com https://fonts.gstatic.com https://fonts.googleapis.com; frame-src 'self'; img-src 'self' data: https://github.githubassets.com https://fonts.gstatic.com https://fonts.googleapis.com; media-src 'self'; object-src 'none'; script-src 'self' https://github.githubassets.com 'unsafe-inline'; style-src 'self' data: https://github.githubassets.com https://fonts.gstatic.com https://fonts.googleapis.com 'unsafe-inline'; worker-src 'self'; report-uri https://giladpeleg.report-uri.com/r/d/csp/enforce; report-to default;",
"Permissions-Policy: fullscreen=(self)",
"Referrer-Policy: no-referrer-when-downgrade",
`Report-To: '{"group":"default","max_age":31536000,"endpoints":[{"url":"https://giladpeleg.report-uri.com/a/d/g"}],"include_subdomains":true}'`,
Expand Down

0 comments on commit 0ac33be

Please sign in to comment.