In dev mode (express on localhost:4000, vue on localhost:8080) works fine, all cookies saving correct. In production mode i change cors settings and axios.defaults.baseURL, and... client dont save cookies...
but response request contains set-cookie header
backend cors settings:
app.use(
cors({
credentials: true,
origin: process.env.CLIENT_URL
})
)
backend session settings:
app.use(
session({
store: new redisStore({
host: 'localhost', port: 6379, client: redisClient, ttl: 86400
}),
name: '_TS',
secret: process.env.SESSION_SECRET,
resave: false,
cookie: { secure: false, maxAge: 600000 },
saveUninitialized: true
})
);
frontend:
axios.defaults.withCredentials = true
axios.defaults.baseURL = 'http://my-domain.com';
(contain session cookie!)

(session cookie is missing)

P.S. Postman works correctly, and saving cookies fine.
