WKCookieWebView icon indicating copy to clipboard operation
WKCookieWebView copied to clipboard

When redirect with 302, WKCookieWebView not save cookies.

Open marcoserafini2 opened this issue 6 years ago • 6 comments

I sent request to 1stURL, 1stURL will redirect to 2ndURL with "Set Cookie" in response header, but the cookie is not set. With httpCookieStore for WKWebsiteDataStore in iOS 11 can I retrieve the cookie, but with a previous version of ios?

marcoserafini2 avatar Apr 04 '18 19:04 marcoserafini2

@marcoserafini2 Can you tell me which url you can test?

Kofktu avatar Apr 05 '18 02:04 Kofktu

@Kofktu No I can not, because it's a private network, but you can test it with any redirects that set cookies

marcoserafini2 avatar Apr 05 '18 07:04 marcoserafini2

@marcoserafini2 To check an issue, you need a URL with the same error. Please let me know if there are any URLs that have the same symptoms in your public URLs.

Kofktu avatar Apr 11 '18 02:04 Kofktu

Hey guys @marcoserafini2 @Kofktu , I met the same problem as you, it seems that can't get the redirects url's cookies in decidePolicyFor navigationResponse delegate method, did you fix it? Look forward to your reply.

KittenYang avatar Sep 01 '18 17:09 KittenYang

@KittenYang take a look at this article

marcoserafini2 avatar Sep 03 '18 10:09 marcoserafini2

@KittenYang Version 1.0.2 released. Would you like to test it?

Kofktu avatar Sep 14 '18 02:09 Kofktu