I am developing a crossrider (crossbrowser) extension right now, based on an existing chrome plugin.
Part of the privacy concept and the login procedure i need to manually set and remove some cookies. In Chrome, i do the following procedures:
chrome.cookies.set({"url":"https://protonmail.ch/","domain":".protonmail.ch","path":"/","expirationDate": expire,"secure":true,"name":"protonmail_pw","value":"true"}, function (cookie){
//continue
});
chrome.cookies.getAll({"domain":".protonmail.ch"}, function(cookies) {
for(var i=0; i<cookies.length;i++) {
chrome.cookies.remove({'url': "http" + (cookies[i].secure ? "s" : "") + "://" + cookies[i].domain + cookies[i].path, name: cookies[i].name});
}
});
How can i reconstruct this behaviour using crossrider? I wasn't able to find any documentation regarding cookie manipulation!
Best Regards & Thanks in Advance