From 3f4ef11ee44689c33188e4a125c95f9b6b1629a8 Mon Sep 17 00:00:00 2001 From: vejja Date: Fri, 28 Jun 2024 13:06:35 +0200 Subject: [PATCH] fix csp denial of pinceau styles runtime hydration --- docs/nuxt.config.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/docs/nuxt.config.ts b/docs/nuxt.config.ts index 667b292e..c6d06a7d 100755 --- a/docs/nuxt.config.ts +++ b/docs/nuxt.config.ts @@ -16,6 +16,7 @@ export default defineNuxtConfig({ strict: true, headers: { contentSecurityPolicy: { + 'style-src': ["'self'", "'unsafe-inline'"], 'img-src': ["'self'", "data:", 'https:'], // Allow https: external images 'connect-src': process.env.NODE_ENV === 'development' ? ["'self'", 'https:', 'ws:'] : ["'self'", 'https:'], // Allow websocket in dev mode 'frame-src': ['https://www.youtube-nocookie.com', 'https://stackblitz.com'], // Allow youtube and stackblitz iframes @@ -25,6 +26,9 @@ export default defineNuxtConfig({ "fullscreen": ['self', '"https://www.youtube-nocookie.com"'], // Allow fullscreen for youtube }, crossOriginEmbedderPolicy: 'unsafe-none', // Allow youtube and stackblitz iframes + }, + ssg: { + hashStyles: false } } })