My FeedDiscussionsHeadless CMS
New
Sign in
Log inSign up
Learn more about Hashnode Headless CMSHashnode Headless CMS
Collaborate seamlessly with Hashnode Headless CMS for Enterprise.
Upgrade ✨Learn more

Can we use session cookies cross-origin?

Deactivated User's photo
Deactivated User
·Apr 25, 2020

Using Node and Express on the server

I have a static web page (at localhost:4000) which makes an AJAX request ( to login the user) to my API server( at localhost:5000). The API server uses express sessions. Now, how do I get this session to my static web page?