diff --git a/src/frontend/vite.config.js b/src/frontend/vite.config.js index 3dd6b09..25fecde 100644 --- a/src/frontend/vite.config.js +++ b/src/frontend/vite.config.js @@ -13,13 +13,14 @@ function suppressURIErrorPlugin() { if (req.url) { decodeURI(req.url); } - next(); } catch (e) { - // Silently handle malformed URIs - res.writeHead(400); - res.end('Bad Request'); + // Silently ignore malformed URIs from browser extensions + // Don't call next(), just end the response + res.writeHead(200, { 'Content-Type': 'text/plain' }); + res.end('OK'); return; } + next(); }); } };