【发布时间】:2015-10-22 17:42:30
【问题描述】:
我尝试使用 fetch API 发出请求,但是当我使用 console.log(response.headers.get("Set-Cookie")) 时,我得到了 undefined。
有什么办法可以通过 cookie 在请求之间持续存在请求?
【问题讨论】:
-
哦,我阅读了源代码,似乎什么android实现目前没有cookie:(
-
我用过github.com/joeferraro/react-native-cookies,对你来说可能是个不错的选择。
-
它对我的问题没有帮助,它只适用于 iOS :(
-
AsyncStorate 怎么样? facebook.github.io/react-native/docs/asyncstorage.html
-
异步存储如何帮助我从 http-request 获取 cookie?
标签: android reactjs react-native