-
Notifications
You must be signed in to change notification settings - Fork 84
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How do I fix CookieConsent-legacy name? #73
Comments
The short story is that some browsers don't support the SameSite=None attribute. So react-cookie-consent fixes this like so:
This happens on lines 186-192 When checking the cookie it'll do it in reverse. If the regular cookie exists, it'll use that. If no regular cookie exists it'll check whether the legacy cookie exists. If both don't exist no consent was given. This happens on lines 200-2010 The long story can be found here: pull-request#68 |
Thanks for the context @Mastermindzh Mine is a personal site so changing the setting to |
I didn‘t update my codebase at all except for dependabot PRs. I‘m noticing either my renamed CookieConsent or default have
-legacy
appended to it.I am not sure how to resolve this and right now I‘m resorting to to have
CookieConsent-legacy
in my code. What is the context that triggers thislegacy
appended in the name?Thank you! will share a tutorial for beginners like myself once I resolve this.
The text was updated successfully, but these errors were encountered: