How can I get cookies that were set in javascript from a twig template? [NEW] This question was already asked a few years ago, and the way of doing it was through a plugin. I was wondering if there is a way of doing it just using Craft and Twig.

I set up a cookie using JavaScript, and I want to read it with Craft. Is this possible?
Assuming this is for Craft 3, you can do something like this from a template to loop through all available cookies for a site:

{% set cookies = craft.app.request.getCookies() %}

{% for cookie in cookies %}
    {{ cookie.name }}
{% endfor %}