Skip to content

Commit

Permalink
feat: update headers
Browse files Browse the repository at this point in the history
  • Loading branch information
YvesRijckaert committed May 17, 2023
1 parent 08db879 commit 4243637
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions examples/nextjs/next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,15 @@ module.exports = {
async headers() {
return [
{
source: '/(.*)',
source: '/:path*',
headers: [
{
key: 'X-Frame-Options',
value: 'SAMEORIGIN https://app.contentful.com',
value: 'SAMEORIGIN',
},
{
key: 'Content-Security-Policy',
value: `frame-ancestors 'self' https://app.contentful.com`,
},
],
},
Expand Down

0 comments on commit 4243637

Please sign in to comment.