Cookie data not visible on frontend


I am stuck in project e-commerce part 2 in fullstack part. My backend and frontend have different port. After successful login, the session cookie data can only be seen in backend. On the other hand, these data are not available on front end dev tools application. Hence despite successful login , if the page is refreshed, it returns to the page before login. Without data from req. session , the project can not be completed. How should it be solved ?