1

I'm using Alamofire for server access and the server API is using cookies for authentication. Now I would like to open a web view and include the auth cookie from the app in the web view.

The API and the URL in the web view is using the same domain. I don't really care if it's using WKWebView or SFSafariViewController, but I would prefer SFSafariViewController.

Is this possible?

Johan Nordberg
  • 3,621
  • 4
  • 33
  • 58
  • You have to sync your cookies after changing from Httpcookiestorage to httpcookiestore for wkwebview. wkwebview has own cookie storage – Muhammad Shauket Oct 31 '18 at 01:11

1 Answers1

0

You can manually set cookies only using WKWebView. Read this first https://forums.developer.apple.com/thread/97194

canister_exister
  • 567
  • 4
  • 15