We are injecting cookies using a nonPersistent()
data store before creating the WKWebView
(on completion).
This works fine on prior versions (and I know Xcode 14 is in beta) but is no longer working in Xcode 14 / iOS 16 simulators and I see no posts, bugs raised or release notes for this so I'm raising it here to see if anyone else is experiencing this?
I can see that the cookies are present in the WKHTTPCookieStore
accessed via webView.configuration.websiteDataStore.httpCookieStore.getAllCookies
. But both Safari debugging and our JS code embedded on the site can see no cookies.