How Do I Prevent AddThis From Using Cookies On My Site?

♀尐吖头ヾ 提交于 2019-12-22 10:26:41

问题


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.

How can I use the component but prevent it from using cookies?


回答1:


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>


来源:https://stackoverflow.com/questions/20218458/how-do-i-prevent-addthis-from-using-cookies-on-my-site

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!