some1ataplace

Results 96 comments of some1ataplace

### **evalXCookieConsent:** https://django-cookie-consent.readthedocs.io/en/latest/getting_started.html#checking-for-3rd-party-cookies-dynamically In the test app, this function executes when the cookie bar gets accepted. It specifically looks for `` in the HTML template. `document.querySelectorAll("script[type='x/cookie_consent']");` in this case is...

Figured out a way to do it with a custom django setting: test_page.html: ``` const refresh_setting = "{{request|cookie_consent_refresh_enabled}}"; ``` Cookiebar.js: ``` body.classList.remove('with-cookie-bar'); if (refresh_setting === "True") { window.location.reload(); } ```...

@sergei-maertens - One way I was able to work around that problem so that you could use the refresh feature was that I hid the entire page form functionality before...

@binoyudayan Still wondering if you can provide a PR even a few years later? If not, hoping someone could create some of the settings as suggested by bmihelac. I am...

@binoyudayan You are awesome thank you so much I would have never figured that out myself!

@JesseDeLoore and @motasay Can you tell us how we could recreate this error ourselves?

@JesseDeLoore Thank you. This error still occurs if you do not set a value for COOKIE_CONSENT_NAME in your own settings.py and the default is used instead.

We would probably need to do something like this: Database values for cookie name, path, and domain must match the third party cookie values that are stored in your browser....

It also looks like we will need a .pre-commit-config.yaml file since other jazzband libraries use it. In my most recent PR the test failed because I did not have it....

@sergei-maertens - I am not entirely sure if anything breaks. I just thought having smart_str() in the code was strange since you told me in the middleware PR that it...