Skip to content

Commit

Permalink
fix csp when default color mode is dark
Browse files Browse the repository at this point in the history
  • Loading branch information
tom2drum committed Sep 5, 2024
1 parent e2081d4 commit c9dcfbc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion nextjs/csp/policies/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,9 @@ export function app(): CspDev.DirectiveDescriptor {
// https://github.com/vercel/next.js/issues/14221#issuecomment-657258278
config.app.isDev ? KEY_WORDS.UNSAFE_EVAL : '',

// hash of ColorModeScript
// hash of ColorModeScript: system + dark
'\'sha256-e7MRMmTzLsLQvIy1iizO1lXf7VWYoQ6ysj5fuUzvRwE=\'',
'\'sha256-9A7qFFHmxdWjZMQmfzYD2XWaNHLu1ZmQB0Ds4Go764k=\'',
],

'style-src': [
Expand Down

0 comments on commit c9dcfbc

Please sign in to comment.