Hi, I'm trying to retrieve a cookie using this Grav Method: https://learn.getgrav.org/themes/twig-filters-functions#get-cookie
I tried:
{% set foo = get_cookie('MY_COOKIE') %}
<p>var: {{foo}}</p>
But it's not working. Is this function retrieve a cookie from the header response of the page or a cookie previously set by the front-end (JS) for example?
Basically I need to read some cookies from a response header OR to read headers directly, is there a way to accomplish that?
Thanks