Skip to content

Commit

Permalink
fix: allow embed content in iframes
Browse files Browse the repository at this point in the history
* Sets the Content-Security-Policy to allow the sites contents to
embedded in an iframe on the newrelic domain
  • Loading branch information
aswanson-nr committed Sep 21, 2021
1 parent ccce867 commit 4c9e27e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion gatsby-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,10 @@ module.exports = {
{
resolve: 'gatsby-plugin-gatsby-cloud',
options: {
allPageHeaders: ['Referrer-Policy: no-referrer-when-downgrade'],
allPageHeaders: [
'Referrer-Policy: no-referrer-when-downgrade',
'Content-Security-Policy: frame-ancestors https://*.newrelic.com http://*.newrelic.com',
],
},
},
],
Expand Down

0 comments on commit 4c9e27e

Please sign in to comment.