I got set-cookie in decidePolicyForNavigationResponse method before like this:
- (void)webView:(WKWebView *)webView decidePolicyForNavigationResponse:(WKNavigationResponse *)navigationResponse decisionHandler:(void (^)(WKNavigationResponsePolicy))decisionHandler{
NSHTTPURLResponse *response = (NSHTTPURLResponse *)navigationResponse.response;
self.response = response;
}
But in ios12 navigationResponse in this method cannot get set-cookie again.Can I have other method to replace it? Or is there any other method that I can get set-cookie on page? If you cannot understand please let me know. Thank you~