如何防止AddThis使用我的网站上的Cookie? [英] How Do I Prevent AddThis From Using Cookies On My Site?
本文介绍了如何防止AddThis使用我的网站上的Cookie?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我在网站上使用 AddThis 组件来添加社交书签功能。但我不想让他们的代码添加cookie给我的访客。
I'm using the AddThis component on a site to add social-bookmarking functionality. However I don't want their code adding cookies to my visitors.
如何使用组件,但是阻止它使用Cookie?
How can I use the component but prevent it from using cookies?
推荐答案
在设置组件时使用 data_use_cookies
config参数:
Use the data_use_cookies
config parameter when setting up the component:
<script type="text/javascript">var addthis_config = {data_use_cookies_ondomain: !1, data_use_cookies: !1};</script>
<script type="text/javascript" src="//s7.addthis.com/js/300/addthis_widget.js#pubid=ra-5278666D66d6d6"></script>
这篇关于如何防止AddThis使用我的网站上的Cookie?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文