fix: 🐛 Set COEP to credentialless to be able to load remote content

This commit is contained in:
Jesse Wierzbinski 2024-11-08 08:18:57 +01:00
parent 093ae627b9
commit 3d27565a3e
No known key found for this signature in database

View file

@ -194,10 +194,7 @@ export default defineNuxtConfig({
security: { security: {
headers: { headers: {
// Nuxt DevTools // Nuxt DevTools
crossOriginEmbedderPolicy: crossOriginEmbedderPolicy: "credentialless",
process.env.NODE_ENV === "development"
? "unsafe-none"
: "require-corp",
contentSecurityPolicy: { contentSecurityPolicy: {
"img-src": ["'self'", "data:", "https:", "blob:"], "img-src": ["'self'", "data:", "https:", "blob:"],
"script-src": ["'nonce-{{nonce}}'", "'strict-dynamic'"], "script-src": ["'nonce-{{nonce}}'", "'strict-dynamic'"],