The Auto Block, blocks my pictures on my website OneTrust

The Auto Block, blocks my pictures on my website

if you click on only necessary cookies, you will not see any pictures on the entire website! 
I tried something out and found out that it is due to the marketing cookies. 
If these are off, no more pictures will be shown on the page! Please help me, I am very desperate ...

 

回答

Hi Robin, 

This is expected behavior of Cookiebot auto blocking mode. What you are describing is because automatic cookie blocking feature holds back any script that sets other than strictly necessary cookies until user consent for the specific cookie category has been obtained.

The reason why the auto blocking mode does not display images is that those elements are setting cookies on the site and therefore they have been hold on (not displayed) until the consent is given. When consent is given and cookies have been allowed those elements are displayed on the website.
This is how auto blocking mode works, it hold/blocks all elements which are setting cookies on the website until those cookies have been allowed.
For more detailed information please check this article: https://support.cookiebot.com/hc/en-us/articles/360009063100-Automatic-Cookie-Blocking-How-does-it-work-

However, I suggest you to investigate why images on your website are classified ad a marketing cookies (if they are coming from somewhere or if they have any special attributes and etc). You could also check which marketing cookies are set with the images on the website and then classify them as necessary (if this is appropriate). 

Regards,
Spas

 

Hi Robin, 

In case that those necessary cookies are being set by a script tag that also sets other categories of cookies, e.g. marketing-cookies. The tag will then only be activated if the user consents to marketing cookies.
The other possible reason is that Cookiebot not actively blocks those cookies because of the script which is setting them. I think there's errors that cause the scripts to not be able to run properly and fail to set the cookies. This could be cause because Cookiebot script is not first to load on the website.
You could try to add the data-cookieconsent="ignore" attribute to the script that sets those cookies.

Regards,
Spas

 

OneTrust也遇到了类似的问题,不清楚是否同样的原理导致的。

 

 

 

作者:Chuck Lu    GitHub    
posted @   ChuckLu  阅读(188)  评论(0编辑  收藏  举报
编辑推荐:
· 记一次.NET内存居高不下排查解决与启示
· 探究高空视频全景AR技术的实现原理
· 理解Rust引用及其生命周期标识(上)
· 浏览器原生「磁吸」效果!Anchor Positioning 锚点定位神器解析
· 没有源码,如何修改代码逻辑?
阅读排行:
· 全程不用写代码,我用AI程序员写了一个飞机大战
· DeepSeek 开源周回顾「GitHub 热点速览」
· MongoDB 8.0这个新功能碉堡了,比商业数据库还牛
· 记一次.NET内存居高不下排查解决与启示
· 白话解读 Dapr 1.15:你的「微服务管家」又秀新绝活了
历史上的今天:
2017-12-07 kentico中自定义错误页面
2017-12-07 Troubleshooting Failed Requests Using Tracing in IIS 8.5
点击右上角即可分享
微信分享提示