我正在使用 incongnito 浏览器。当我清除所有 cookie 时,我正在使用 wkwebview 我可以看到像 google 这样的流行搜索引擎会记住已经进行的搜索。
我尝试使用 NSURLSession 清除 NSHTTPCookieStorage 中的所有 cookie 和 resetcookies,但它仍然无法正常工作。
最佳答案
为wkwebsitedatastore
设置nonpersistentdatastore
为wkwebviewconfiguration
为wkwebview
在uiwebview
中为NSURlrequest
设置NSURLrequestreloadcacheignoringlocalandremotecachedata
引用
关于ios - 如何在 wkwebview/uiwebview 中支持隐身/隐私模式,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/43126844/