Skip to content

Commit

Permalink
remove gatsby netlify plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
TheJuanAndOnly99 committed Jan 8, 2025
1 parent 556c4d6 commit 7af6095
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 421 deletions.
22 changes: 12 additions & 10 deletions gatsby-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,17 +11,19 @@ module.exports = {
siteMetadata: {
title: `FINOS Event Calendar`,
},
plugins: [
headers: [
{
resolve: 'gatsby-plugin-netlify',
options: {
headers: {
'/*': [
'X-Frame-Options: SAMEORIGIN',
'Content-Security-Policy: frame-ancestors \'self\' https://finos.org',
],
source: '*',
headers: [
{
key: 'x-frame-options',
value: 'SAMEORIGIN', // Allow embedding only from the same origin
},
},
{
key: 'content-security-policy',
value: "frame-ancestors 'self' https://finos.org", // Allow embedding from 'finos.org' and same origin
},
],
},
],
};
}
Loading

0 comments on commit 7af6095

Please sign in to comment.