I have a cookie on my browser and I want to read it with react, I use it like that:
import Cookies from 'js-cookie';
console.log(Cookies.get('cookieName1'));
when I run it, I get undefined on the console, but, the cookieName1 have a value on my cookies.
How can I fix it ?
Cookies.get();and show us what you see there...?HttpOnlywhich means that it is not visible from JavaScriptconsole.log(document.cookie)and tell us what you get.undefined