fix(csp): disable Vite module preload polyfill to prevent inline script violation

The polyfill was injected as an inline script at build time, causing a hard
CSP block under script-src 'self'. All browsers that support ES modules also
support modulepreload natively, so the polyfill is unnecessary.
This commit is contained in:
jubnl 2026-04-10 01:10:21 +02:00
parent 8212f3c023
commit e91ee04d93
No known key found for this signature in database
GPG Key ID: CD823EC5FB4EB9D2

View File

@ -90,6 +90,7 @@ export default defineConfig({
], ],
build: { build: {
sourcemap: false, sourcemap: false,
modulePreload: { polyfill: false },
}, },
server: { server: {
port: 5173, port: 5173,