Skip to content

Commit

Permalink
feat: unsafe-eval not on prod
Browse files Browse the repository at this point in the history
  • Loading branch information
pom421 committed Nov 26, 2024
1 parent d7fa7c8 commit 3764bdf
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions next.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,10 @@ const csp = {
"script-src": [
"'self'",
"'unsafe-inline'",
"'unsafe-eval'",
"https://stats.beta.gouv.fr",
"https://tally.so",
process.env.PACOUPA_ENV === "preprod" && "https://vercel.live",
process.env.NODE_ENV === "development" && "'unsafe-eval' http://localhost",
process.env.NODE_ENV !== "prod" && "'unsafe-eval'",
],
"style-src": ["'self'", "'unsafe-inline'"],
"object-src": ["'self'", "data:"],
Expand Down

0 comments on commit 3764bdf

Please sign in to comment.