need to refresh the page after removing cookie

时光怂恿深爱的人放手 提交于 2020-06-17 16:19:47

问题


iam using a code to remove the cookie from browser and is worked as expected. But after this cookie removal i need to refresh the page manually . i want to refresh the page automatically after removing the cookie. Please help me to solve this.

for (var i = 0; i < count; i++) {
               var domainName = all_cookies[i].domain.replace('.com','');
               var domainnameapp = domainName.replace('.','');
               var url = "http" + (all_cookies[i].secure ? "s" : "") + "://" + all_cookies[i].domain + all_cookies[i].path;
                  chrome.cookies.remove({"url": url, "name": all_cookies[i].name});
}

来源:https://stackoverflow.com/questions/61077492/need-to-refresh-the-page-after-removing-cookie

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