Skip to content

Commit

Permalink
Add CSP on viz
Browse files Browse the repository at this point in the history
  • Loading branch information
flvndvd committed Jul 25, 2024
1 parent 87c8725 commit 130f75e
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions viz/next.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,12 @@ const nextConfig = {
key: "Access-Control-Allow-Origin",
value: isDev ? "http://localhost:3000" : "https://dust.tt",
},
{
key: "Content-Security-Policy",
value: isDev
? "frame-ancestors 'self' http://localhost:3000;"
: "frame-ancestors 'self' https://dust.tt;",
},
],
},
// Allow CORS for static files.
Expand Down

0 comments on commit 130f75e

Please sign in to comment.