Skip to content

Commit

Permalink
fix(security): 🐛 change CSP hash
Browse files Browse the repository at this point in the history
  • Loading branch information
vanntile committed Oct 22, 2021
1 parent d1bdefb commit f65d62a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ module.exports = {
defaultSrc: "'self'",
scriptSrc: [
"'self'",
isProd ? "'sha256-4b6neOQEfz/94vH7nVjqnqWI8K3KNB/U9aK4wMD5oYA='" : "'unsafe-inline'",
isProd ? "'sha256-g2oW2Dny7QAk7D0xY1C8Kxov7kkFB5GX6bWOAvf8nuc='" : "'unsafe-inline'",
"'unsafe-eval'", // TODO: find a way to MDX without this
],
styleSrc: ["'self'", "'unsafe-inline'", isProd ? null : "'unsafe-eval'"],
Expand Down

0 comments on commit f65d62a

Please sign in to comment.