Skip to content

Commit

Permalink
Merge pull request #484 from Baroshem/vejja-patch-2
Browse files Browse the repository at this point in the history
fix(docs): csp denial of pinceau styles runtime hydration
  • Loading branch information
vejja authored Jun 28, 2024
2 parents 8fe6daa + 3f4ef11 commit d236007
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions docs/nuxt.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
}
}
})

0 comments on commit d236007

Please sign in to comment.