Open tomdyqin opened 2 weeks ago
because crxjs will change the url like '/@id/virtual:svg-icons-register?t=1731562337593'
solution:
configureServer: ({ middlewares }) => {
middlewares.use(cors({ origin: "*" }));
middlewares.use(async (req, res, next) => {
const url = normalizePath(req.url).split('?')[0]; <====
@tomdyqin can u share the full plugins section of ur vite config file, please ? cant understand what should i do with that url
https://github.com/crxjs/chrome-extension-tools/issues/654