SyntaxFix
Write A Post
Hire A Developer
Questions
Just add Axios.defaults.withCredentials=true instead of ({credentials: true}) in client side, and change app.use(cors()) to
Axios.defaults.withCredentials=true
{credentials: true}
app.use(cors())
app.use(cors( {origin: ['your client side server'], methods: ['GET', 'POST'], credentials:true, } ))