Do you use the cookie parser in the backend?
const cookieParser = require('cookie-parser');
and
app.use(cookieParser());
you should also omit domain. especially since you should write ‘localhost’ and not just localhost (must be string)