The cookie legislation under GDPR is probably the most poorly thought out thing the EU has ever enacted, I hate cookies, but cookie pop ups have made everyone miserable.
I’m not spreading misinformation because it’s been challenged and every news site does the same thing, many do far worse.
It’s not illegal. What should be illegal is reading cookies for anything other than your own site.