Hi,
I'm trying to integrate an authentication flow by embedding a web view in my app using WKWebView. The idea is that the user enters his or hers credentials in the web view, which consequentially makes an XHR request that performs authentication. The response of this XHR request uses the Set-Cookie header to set an authentication cookie.
Is there any way to read this cookie from the WKWebView using public and documented APIs? So far I'm all out of luck, having tried both HTTPCookieStorage and WKWebsiteDataStore to no avail. I've never been able to read any cookies using HTTPCookieStorage. Using WKWebsiteDataStore I seem to be able to see the cookies, but I can't access their data.
Any help is greatly appreciated.
Regards,
Viktor