'Ngrok Create React App Cookies not being set / get

We're using Universal-cookies with CRA to set and get JWT tokens, which are stored as just secure cookies. we're manipulating the cookies from the frontend only for now.

Everything was working fine in our Local dev environment and our Deployed Production environment, however when we forwarded our local application to a URL using NGROK, we are unable to set or get cookies properly.

cookies.get() //returns undefined
cookies.set() //sets the cookies after a reload of the page

We're setting cookies from the frontend for now and haven't enabled HTTPOnly flag. We've also set SameSite : none it changed nothing.

Is there something that we're missing?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source