Does anyone know how to set a WKWebView to pick cookies from NSHTTPCookieStorage ?
I tried injecting the cookie through WKUserScript, but it doesn't work since my page has several redirections, and every page in that redirection uses a cookie.
Any suggestions?
Cookies are not supported in the
WKWebViewso far. Many attempts (usingNSHTTPCookieStorage, theWKWebsiteDataStoreand evaluateddocument.cookie;) all do not work.You can follow this bug-report for the issue and possible patches, I hope that answers your question for now, although it doesn't solve it.