Hacker News new | ask | show | jobs
by the_gipsy 2827 days ago
They should, in theory, fine websites that do install cookies before you give consent, or refuse to give sevice that doesn’t strictly require cookies (e.g. an article).
1 comments

If the cookie only stores the preference to not show the dialog box. That should be GDPR compliant.
You should be using localstorage from the web storage API and not cookies. Cookies are sent to the server with every request. Local Storage is not.