WKWebView can't carry cookie for 302 redirect -
i set cookie in request header before call loadrequest() function load page. use document.cookie() set cookie wkuserscript according [wkwebview cookies. however, find if 302 redirection occurs, request may fail loss of cookie. example, request of http://a redirect http://b, set cookie request of http://a operating request head , using wkuserscript, these 2 ways can not set cookie request of http://b, 302 request of http://b may fail. situation occurs in ios8 more ios9. have workaround?
note sure, first response may contain "set-cookie" header. hence, have use provided cookie in second request. may it's missing.
Comments
Post a Comment