django-cookie-consent
django-cookie-consent copied to clipboard
Reusable application for managing various cookies and visitors consent for their use in Django project.
Trying to implement this nice coockie-consent library to my page but i get an error. I have tryed to recreate the same values in the CookieGroup and Cookies tables and...
This project has a pretty nifty cookie bar util whose use is not mentioned anywhere in the documentation. It makes me: (´。_。`)
**BACKGROUND** I have a project that uses google analytics to track scrolling. To disable google analytics cookies you have to use this `window['ga-disable-YOUR-GA-TAG'] = true;` to prevent scroll tracking. (Otherwise...
Fixes #43 Switches type to "module" allowing for import/export Changes var to const Removes the template ready function due to type "module" having defer by default Uses alternatives to innerHTML...
I am wondering if we could use signed cookies anywhere in django-cookie-consent. Maybe we could turn the settings COOKIE_CONSENT_NAME cookie into a signed cookie? https://code.djangoproject.com/wiki/Signing https://docs.djangoproject.com/en/4.0/ref/request-response/#django.http.HttpRequest.get_signed_cookie https://docs.djangoproject.com/en/4.0/ref/request-response/#django.http.HttpResponse.set_signed_cookie https://stackoverflow.com/questions/6468507/what-are-signed-cookies-and-why-are-they-useful https://stackoverflow.com/questions/12142058/performance-comparison-of-using-django-signed-cookie-session-over-django-db-ca https://www.reddit.com/r/crypto/comments/esahns/why_does_a_server_sign_a_cookie/...
Solves #13 and #33
Goes along with issue #34 Regarding number 3 in the underlying issue I did not include anything for that because the cookie group names should be labelled like that rather...
The expiration time changes every time you do a browser refresh. This causes the cache to fill up quickly because every page the user visits, the source code is different...
I decided to add new custom settings for the cookie attributes and also allowed the creation of a signed consent cookie. I made the attributes to be the most secure...