react-native-cookies icon indicating copy to clipboard operation
react-native-cookies copied to clipboard

Fixing subdomain issues #114

Open Nhacsam opened this issue 7 years ago • 1 comments

I test if the domain of the cookie match the host url. So, for the url foo.bar.com :

  • bar.com will match
  • barfoo.foo.bar.com will not match
  • foo.bar.com will match

It fix the issue #114

We still have to handle the situation where we have 2 cookies :

const cookie1 = {
  domain: "foo.bar.com",
  name: "session",
  path:"/",
  value: "6de9c6965c1465ed"
};

const cookie2 = {
  domain: "bar.com",
  name: "session",
  path:"/",
  value: "a1784ef82bc"
};

Then the code is non determistic.

It is only for the webkit version

Nhacsam avatar Oct 29 '18 11:10 Nhacsam

I have forked the repo here: https://github.com/safaiyeh/react-native-cookie-store We can create issues and PRs there to continue the development of the project.

safaiyeh avatar Dec 11 '19 19:12 safaiyeh