如何清除反应原生 webview cookie? [英] How to clear react native webview cookies?
本文介绍了如何清除反应原生 webview cookie?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何清除 react native webview cookie?
How to clear react native webview cookies?
当我重新打开该页面时,如果我登录了某个网站,它会记住我的帐户.但我不想那样.
When I re-open the page, it remembers my account if I logged in on a website. But I don't want that.
我可以通过注入 javascript 来做到这一点吗?
Can I do this by injecting javascript?
推荐答案
用这个解决:https://github.com/react-native-community/react-native-cookies
CookieManager.clearAll();
这篇关于如何清除反应原生 webview cookie?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文