req.cookies returns undefined but cookies are set
tried the fetching api with :
1st credentials : 'include' 2nd withCredentials: true
and added app.use(express.urlencoded({ extended: true })); in app.js
but nothing worked.