fix: add CSP hashes for inline styles from Google Fonts/Tailwind
This commit is contained in:
1 parent
0d6032d444
commit
59f03827bc
1 file changed
+5
@@ -20,6 +20,11 @@ export function buildContentSecurityPolicy(nonce: string): string {
|
|||||||
"'self'",
|
"'self'",
|
||||||
`'nonce-${nonce}'`,
|
`'nonce-${nonce}'`,
|
||||||
"https://fonts.googleapis.com",
|
"https://fonts.googleapis.com",
|
||||||
|
"'sha256-Kj92o2EIJOPxE06VhJbN8NBhB0Nq5lhNV8aXMMLf5fQ='",
|
||||||
|
"'sha256-NwXHG+Ak6jw1mAqOvXUBP4wBN4kCG04iIIqq24r5gqY='",
|
||||||
|
"'sha256-47DEQpj8HBSa+/TImW+5JCeuQeRkm5NMpJWZG3hSuFU='",
|
||||||
|
"'sha256-CIxDM5jnsGiKqXs2v7NKCY5MzdR9gu6TtiMJrDw29AY='",
|
||||||
|
"'sha256-599zOKM2ViWVJC0ovicF5YwQ3sRN4OtbjneHwKvkzkY='",
|
||||||
...(isDev ? ["'unsafe-inline'"] : []),
|
...(isDev ? ["'unsafe-inline'"] : []),
|
||||||
].join(" ");
|
].join(" ");
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user