Skip to content

Commit

Permalink
Merge pull request #45 from MarquezProject/config/remove-csp
Browse files Browse the repository at this point in the history
configure csp plugin
  • Loading branch information
merobi-hub authored Aug 10, 2023
2 parents 37610b7 + f480a21 commit d4d32bc
Show file tree
Hide file tree
Showing 3 changed files with 2,516 additions and 2,003 deletions.
15 changes: 15 additions & 0 deletions gatsby-config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,21 @@ const plugins = [
},
{
resolve: `gatsby-plugin-csp`,
options: {
disableOnDev: false,
reportOnly: false,
mergeScriptHashes: true,
mergeStyleHashes: false,
mergeDefaultDirectives: true,
directives: {
"script-src": "https: 'unsafe-eval'",
"script-src-elem": "'self' 'unsafe-inline' https://plausible.io/js/script.outbound-links.js",
"style-src": "'self' 'unsafe-inline'",
"style-src-elem": "'self' 'unsafe-inline' https://fonts.googleapis.com",
"font-src": "'self' data: https://fonts.gstatic.com/s/karla/v30/qkBIXvYC6trAT55ZBi1ueQVIjQTD-JqaHUlKZbLXGhmRytc.woff2 https://fonts.gstatic.com/s/karla/v30/qkBIXvYC6trAT55ZBi1ueQVIjQTD-JqaE0lKZbLXGhmR.woff2",
"img-src": "*"
}
}
},
]

Expand Down
Loading

0 comments on commit d4d32bc

Please sign in to comment.