Skip to content

Commit

Permalink
add csp (#8)
Browse files Browse the repository at this point in the history
  • Loading branch information
dferber90 authored Dec 18, 2024
1 parent 8152ef3 commit 2bf7cdc
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions examples/snippets/next.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,20 @@ const nextConfig = {
},
],
},
async headers() {
return [
{
source: '/(.*)',
headers: [
{
key: 'Content-Security-Policy',
value:
"frame-ancestors 'self' https://flags-sdk.com http://localhost:* https://*.vercel.sh",
},
],
},
];
},
};

export default withVercelToolbar()(nextConfig);

0 comments on commit 2bf7cdc

Please sign in to comment.