mirror of
https://github.com/versia-pub/frontend.git
synced 2025-12-06 08:28:20 +01:00
fix: 🐛 Set COEP to credentialless to be able to load remote content
This commit is contained in:
parent
093ae627b9
commit
3d27565a3e
|
|
@ -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'"],
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue