diff --git a/vite.config.ts b/vite.config.ts index 7ffc82f..4726636 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -27,11 +27,21 @@ export default defineConfig({ '/graphql': { target: 'https://graphql.anilist.co', changeOrigin: true, + configure: (proxy, options) => { + proxy.on('proxyRes', proxyRes => { + delete proxyRes.headers['set-cookie']; + }); + }, }, '^/mangaupdates/.*$': { target: 'https://api.mangaupdates.com', changeOrigin: true, rewrite: (path) => path.replace(/^\/mangaupdates/, ''), + configure: (proxy, options) => { + proxy.on('proxyRes', proxyRes => { + delete proxyRes.headers['set-cookie']; + }); + }, }, }, },