For the Redash project we found that we could overcome this by setting the Content-Security-Policy header in gatsby-config.js
headers: [
{
source: '*',
headers: [
{
key: 'Content-Security-Policy',
value: 'frame-ancestors *;',
},
],
},
],
This works because X-Frame-Options is obsolete: