As the title says, the cookie settings popup on every page, even after pressing "Accept all cookies".
Any idea why this is happening?
I think they are using third-party cookies to do this (which, don't do that).
I reported this months ago, and they didn't change anything and didn't even respond.
I have set my browser (Firefox) to block these types of cookies, as it is a privacy violation. I am not going to allow these Stack Exchange cookies, despite any warm fuzzy feelings I may have toward Stack Exchange. So to deal with it, I have added these filters to uBlock Origin:
stackexchange.com##.js-consent-banner
stackoverflow.com##.js-consent-banner
superuser.com##.js-consent-banner
Some people have mentioned Stack Exchange is trying to call JavaScript from
cookielaw.org
. I do currently allow JavaScript from cookielaw.org
, but only
when visiting cbsnews.com
, as I think it breaks otherwise. I am not going to
extend that to Stack Exchange, until we get some kind of response from employees,
and maybe not even then. That JavaScript shouldnt be required to make Stack
Exchange usable.
.stackoverflow.com
). Also, I have 3P cookies blocked by default for all sites. Besides, afaik it would be a huge problem for Apple devices due to ITP.
Mar 31, 2021 at 3:13
cookielaw.org
) to set the cookies -- I found I couldn't get the box to go away until I configured noscript to allow cookielaw.org
.
Mar 31, 2021 at 7:15
In my case, despite having uBlock Origin
disabled and allowed scripts from cookielaw.org
, I could only solve this problem by opening stackoverflow on a new browser (Brave), accept the Strictly Necessary
cookies and check which cookies had been created after this:
OptanonAlertBoxClosed: 2021-03-31T15:41:36.781Z
OptanonConsent: isIABGlobal=false&datestamp=Wed+Mar+31+2021+16%3A41%3A36+GMT%2B0100+(British+Summer+Time)&version=6.10.0&hosts=&landingPath=NotLandingPage&groups=C0003%3A0%2CC0004%3A0%2CC0002%3A0%2CC0001%3A1
I then recreated these cookies on Firefox and the popup was gone.
While this is far from an optimal solution, it allows me to use stackoverflow without having to close the cookie popup on every pageload.
Had same issue when the popup would come back after each page refresh on www.stackoverflow.com
, regardless which button I press or what cookies I chose to enable.
But once I visited meta.stackoverflow.com
and accepted only Functional cookies
, the popup no longer shown anywhere.
So the culprit was that www.stackoverflow.com
only sets one cookie: OptanonConsent
which stores your preferences of allowed cookies in the following format:
groups=C0001%3A1%2CC0002%3A0%2CC0003%3A1%2CC0004%3A0&landingPath=NotLandingPage&datestamp=Wed+Mar+31+2021+19%3A09%3A03+GMT-0400+(Eastern+Standard+Time)&version=6.10.0&hosts=&isIABGlobal=false&AwaitingReconsent=false&geolocation=%3B
Where
C0001
= Strictly Necessary
C0002
= Performance Cookies
C0003
= Functional Cookies
C0004
= Targeting Cookies
Each setting followed by %3A
(which is URL encoded column :
sign) and a number 0
or 1
, where 1
means enabled. So in the example above only Strictly Necessary
and Functional Cookies
are enabled.
To prevent the popup from showing again, another cookie must be set: OptanonAlertBoxClosed
with any value (even empty), by default it sets with the date cookie preferences were changed, i.e 2021-03-31T23:09:03.572Z
For whatever reason www.stackoverflow.com
does not set this cookie.
This happens when you use a blocker to block scripts or XHR from cookielaw.org.
Having an block all third party (except images and css) by default policy, I ran into it
This was something we had to track down and reproduce. We found that the issue was happening to less than 1% of users who have configured browser settings or ad blocking installed. We’ve since updated the user experience to display an error message with more information when this occurs.
This can be related to Ghostery. Pause Ghostery and answer the popup. When Ghostery is resumed, the problem does not recur.
This is still a SO issue. No other website I've encountered requires this workaround.
OptanonAlertBoxClosed
andOptanonConsent
?cookielaw.org
? They're relying on that site for some part of the cookie-check process -- I found I couldn't get the box to go away until I configured NoScript to allowcookielaw.org
.cookielaw.org
(or, frankly, the company [1/2]cdn.cookielaw.org
is blocked by my network and this should be the root of the problem.Version 89.0.4389.114 (Official Build) snap (64-bit)
, I don't have a pi-hole or any other "man in the middle" blocker device, I'm running Ubuntu Mate 20.04.1 x86_64 but I remember seeing it on Windows 10 20H2 as well, and the Chromium I ran this test on had zero extensions enabled. Other than ripping apart their frontend JS for clues (I can try, but it's not my specialty) I can't think of anything else to check.