Commit c9dcfbc5 authored by tom's avatar tom

fix csp when default color mode is dark

parent e2081d49
...@@ -72,8 +72,9 @@ export function app(): CspDev.DirectiveDescriptor { ...@@ -72,8 +72,9 @@ export function app(): CspDev.DirectiveDescriptor {
// https://github.com/vercel/next.js/issues/14221#issuecomment-657258278 // https://github.com/vercel/next.js/issues/14221#issuecomment-657258278
config.app.isDev ? KEY_WORDS.UNSAFE_EVAL : '', config.app.isDev ? KEY_WORDS.UNSAFE_EVAL : '',
// hash of ColorModeScript // hash of ColorModeScript: system + dark
'\'sha256-e7MRMmTzLsLQvIy1iizO1lXf7VWYoQ6ysj5fuUzvRwE=\'', '\'sha256-e7MRMmTzLsLQvIy1iizO1lXf7VWYoQ6ysj5fuUzvRwE=\'',
'\'sha256-9A7qFFHmxdWjZMQmfzYD2XWaNHLu1ZmQB0Ds4Go764k=\'',
], ],
'style-src': [ 'style-src': [
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment