jherax/proxy-storage

Removing cookies are failing when the domain or path were set in the cookie

jherax opened this issue · 1 comments

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!

Take into account only the commit 42ea67e.
All other commits were generated because of the command:
git commit -a --amend --no-edit