react-native-cookies
react-native-cookies copied to clipboard
Same cookie on different subdomain
I have the same cookie name in two different subdomain. For exemple :
const cookie1 = {
domain: "sub1.mywebsite.com",
name: "session",
path:"/",
value: "6de9c6965c1465ed"
};
const cookie2 = {
domain: "sub2.mywebsite.com",
name: "session",
path:"/",
value: "a1784ef82bc"
};
When I do CookieManager.get('sub2.mywebsite.com') I get the wrong one
The problem only shows on webkit Webview. It should be partially fixed by my PR.
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.