Kindly review the image provided via the following link. https://i.sstatic.net/innYb.png
The front-end code initiates a call to the back-end API to log in a user. The back-end is built using Expressjs 4 and the cookie store utilizes redis.
I am puzzled by the fact that even though I can see a cookie being set by expressjs after successful login using Chrome Inspector,
document.cookie
fails to display anything. While I can use "document.cookie" to set and retrieve my own cookies successfully, I am unable to read the one set by the back-end API as shown in the above screen capture.
Question
How can I read the cookie set by the back-end API? What am I overlooking here?