Skip to content

Instantly share code, notes, and snippets.

@tigi44
Created May 20, 2020 08:54
Show Gist options
  • Save tigi44/6c136f3a6db079eebce252ac22b0b753 to your computer and use it in GitHub Desktop.
Save tigi44/6c136f3a6db079eebce252ac22b0b753 to your computer and use it in GitHub Desktop.
[iOS, Objective-c] WebView Cookies (WKWebView, UIWebView)
// Setup Cookies policy
[NSHTTPCookieStorage sharedHTTPCookieStorage].cookieAcceptPolicy = NSHTTPCookieAcceptPolicyAlways;
// Get Cookies from NSHTTPCookieStorage
NSArray<NSHTTPCookie *> *sCookies = [NSHTTPCookieStorage sharedHTTPCookieStorage].cookies;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment