问题
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