diff --git a/client/vite.config.ts b/client/vite.config.ts index 129aa277d..0af8d90cd 100644 --- a/client/vite.config.ts +++ b/client/vite.config.ts @@ -11,6 +11,24 @@ export default defineConfig({ plugins: [ {...eslint({include: 'src/**/*.+(js|jsx|ts|tsx)', fix: false}), enforce: 'pre', }, react(), + { + name: "html-inject-nonce-into-script-tag", + enforce: "post", + transformIndexHtml(html: string) { + const regex = /