Skip to content

Commit

Permalink
fix:add_csp_headers
Browse files Browse the repository at this point in the history
  • Loading branch information
sysrex committed Nov 4, 2024
1 parent 0d74697 commit 26365da
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions gatsby-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -142,5 +142,19 @@ module.exports = {
timeout: 3500, // number; the amount of time, in milliseconds, that you want to allow mailchimp to respond to your request before timing out. defaults to 3500
},
},
{
resolve: "gatsby-plugin-csp",
options: {
disableOnDev: true,
mergeDefaultDirectives: true,
mergeScriptHashes: true,
directives: {
'script-src': `'self' 'unsafe-inline'`,
'style-src': `'self' 'unsafe-inline'`,
'img-src': `'self'`,
'font-src': `'self'`,
},
},
},
],
};

0 comments on commit 26365da

Please sign in to comment.