下一个页面的wkWebview拿不到上一个页面的cookie
1.可以使用
NSArray *cookies = [NSHTTPCookieStorage sharedHTTPCookieStorage].cookies;
NSDictionary *requestHeaderFields = [NSHTTPCookie requestHeaderFieldsWithCookies:cookies];
request.allHTTPHeaderFields = requestHeaderFields;
网友评论