react-native-cookies
react-native-cookies copied to clipboard
Fixing subdomain issues #114
I test if the domain of the cookie match the host url. So, for the url foo.bar.com :
-
bar.comwill match -
barfoo.foo.bar.comwill not match -
foo.bar.comwill 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
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.