Issue in Getting Cookies
Unanswered
rushikesh posted this in #help-forum
I am using NextJS v14.1.0. So consider I have 2 nextjs applications hosted on
example.com and app.example.com respectively and also I have cookie named custom_cookie saved on these domains -.example.com and app.example.com . Now when I open the url app.example.com and read values using cookies().getAll() ; If the url is opened in chrome browser I am getting the value for the cookie which is stored on .example.com while if the url is opened in safari browser I am getting the value for the cookie which is stored on app.example.com . How should I fix this issue. I want to check values of the cookie on both the domains and act accordingly.