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: {
headers: {
// Nuxt DevTools
crossOriginEmbedderPolicy:
process.env.NODE_ENV === "development"
? "unsafe-none"
: "require-corp",
crossOriginEmbedderPolicy: "credentialless",
contentSecurityPolicy: {
"img-src": ["'self'", "data:", "https:", "blob:"],
"script-src": ["'nonce-{{nonce}}'", "'strict-dynamic'"],