Fix Login: Session-Cookies via Vite-Proxy + credentials:include
- Vite-Proxy für /api/* zum Express-Backend (localhost:8080) - credentials: 'include' in customFetch für Cross-Origin-Cookie-Support - Behebt: Login-Response-Set-Cookie wurde vom Browser ignoriert
This commit is contained in:
@@ -63,6 +63,12 @@ export default defineConfig({
|
||||
strictPort: true,
|
||||
host: "0.0.0.0",
|
||||
allowedHosts: true,
|
||||
proxy: {
|
||||
"/api": {
|
||||
target: process.env.API_SERVER_URL || "http://localhost:8080",
|
||||
changeOrigin: true,
|
||||
},
|
||||
},
|
||||
fs: {
|
||||
strict: true,
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user