Removing cookies are failing when the domain or path were set in the cookie
jherax opened this issue · 1 comments
jherax commented
When trying to delete a cookie created by setting options.domain
or options.path
it is not working.
const cookieStore = new WebStorage('cookieStorage');
cookieStore.setItem('testing', [1,4,7], {
domain: '.wordpress.com',
expires: { minutes: 10 },
});
cookieStore.getItem('testing'); // ok, it exists
cookieStore.removeItem('testing'); // failing!
cookieStore.getItem('testing'); // failing, still exists!