diff --git a/frontend/vite-xss-middleware.ts b/frontend/vite-xss-middleware.ts deleted file mode 100644 index 215c5e6..0000000 --- a/frontend/vite-xss-middleware.ts +++ /dev/null @@ -1,40 +0,0 @@ -// vite-xss-fix.ts -import { Plugin } from 'vite'; - -export function viteXssMiddleware(): Plugin { - const middleware = (req: any, res: any, next: any) => { - const originalEnd = res.end; - const chunks: any[] = []; - - res.end = function (chunk?: any) { - if (chunk) chunks.push(Buffer.from(chunk)); - - const body = Buffer.concat(chunks).toString(); - - // If Vite's error message is reflecting user input, replace it - if (body.includes('did you mean to visit') && body.includes('