【发布时间】:2018-09-19 02:20:36
【问题描述】:
我之前在 decisionPolicyForNavigationResponse 方法中得到了 set-cookie,如下所示:
- (void)webView:(WKWebView *)webView decidePolicyForNavigationResponse:(WKNavigationResponse *)navigationResponse decisionHandler:(void (^)(WKNavigationResponsePolicy))decisionHandler{
NSHTTPURLResponse *response = (NSHTTPURLResponse *)navigationResponse.response;
self.response = response;
}
但是在ios12的navigationResponse中这个方法不能再获取set-cookie了。我可以用其他方法代替吗?或者还有其他方法可以让我在页面上获取 set-cookie 吗?如果您不能理解,请告诉我。谢谢~
【问题讨论】:
标签: ios12