Skip to content

Commit

Permalink
fix(site): set Content-Security-Policy to allow loading in Storybook (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
brentswisher authored Jul 19, 2024
1 parent f19a406 commit 5fc4213
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/weak-scissors-vanish.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@ithaka/pharos-site': patch
---

Set Content-Security-Policy to allow iframes in storybook
11 changes: 11 additions & 0 deletions packages/pharos-site/gatsby-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,17 @@ module.exports = {
siteUrl: 'https://pharos.jstor.org',
},
trailingSlash: 'never',
headers: [
{
source: 'pharos.jstor.org',
headers: [
{
key: 'Content-Security-Policy',
value: "default-src 'self' jstor.org *.jstor.org",
},
],
},
],
plugins: [
`gatsby-plugin-react-helmet`,
{
Expand Down

0 comments on commit 5fc4213

Please sign in to comment.