mobile update

This commit is contained in:
arrelin
2026-03-10 14:59:04 +03:00
parent 035e6b20c7
commit 7c352d9e82
3 changed files with 16 additions and 2 deletions

View File

@@ -12,6 +12,20 @@ export default defineConfig({
? 'https://family-budget.duckdns.org'
: 'http://localhost:8080',
changeOrigin: true,
configure: (proxy) => {
if (process.env.TAURI_DEV_HOST) {
proxy.on('proxyRes', (proxyRes) => {
const cookies = proxyRes.headers['set-cookie'];
if (cookies) {
proxyRes.headers['set-cookie'] = cookies.map(cookie =>
cookie
.replace(/;\s*Secure/gi, '')
.replace(/;\s*Domain=[^;]*/gi, '')
);
}
});
}
},
}
}
}