title: Send cookies from nodejs server on ReactJs application
body: <p>How i red <a href="https://medium.com/@ryanchenkie_40935/react-authentication-how-to-store-jwt-in-a-cookie-346519310e81" rel="nofollow noreferrer">here</a>, if i need to send cookie from nodejs to react application both app should be on the same <code>port</code>.<br> Doing this on the server: <code>res.cookie('token', token, { httpOnly: true });</code> <br>i can send the cookies on front-end if i have the <strong>same</strong> ports, but here appear the issue if the both apps are on the <strong>same</strong> port, because if i access on front end for example <code>http://localhost:4001/login</code> and my server also is on <code>http://localhost:4001</code>, i can get the <strong>404</strong> error, because in this way i access the server route <code>http://localhost:4001/login</code> not front-end.<br> Question: <strong>So How to solve this issue when the routes mess with each other and to be able to send the cookies?</strong></p>