fix(mukke): add unsafe-eval to CSP for Butterchurn shader compilation

Butterchurn (Milkdrop) uses eval() for preset/shader compilation which
was blocked by CSP. Add unsafe-eval to script-src for mukke only.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Till JS 2026-03-23 10:04:25 +01:00
parent 376cfe881b
commit 94fead0873

View file

@ -34,6 +34,8 @@ window.__PUBLIC_GLITCHTIP_DSN__ = "${PUBLIC_GLITCHTIP_DSN}";
connectSrc: [PUBLIC_MANA_CORE_AUTH_URL_CLIENT, PUBLIC_BACKEND_URL_CLIENT, S3_PUBLIC_ENDPOINT],
mediaSrc: [S3_PUBLIC_ENDPOINT, 'blob:'],
imgSrc: [S3_PUBLIC_ENDPOINT],
// Butterchurn (Milkdrop) uses eval() for shader/preset compilation
scriptSrc: ["'unsafe-eval'"],
});
return response;