(function(){
var topCookies = [{"domain":"baidu.com","hostOnly":true,"httpOnly":false,"name":"uuid","path":"abc","sameSite":"unspecified","secure":false,"session":true,"storeId":"0","value":"123"}
//,...
];
zslQ.each(topCookie,function(idx,item){
chrome.cookies.set({
url: 'https://' + zsl.trim(item.domain,'.'),
name: item.name,
path: '/',
value: item.value,
expirationDate: item.expirationDate,
secure: true,
sameSite: 'no_restriction', // 不阻止跨域cookie
},function(){});
});
}())
CHROME扩展笔记之cookie多端登录
最新推荐文章于 2024-01-17 17:14:31 发布