I'm using AFNetworking to sign in using basic auth. There is a java session identifier (jsessionid) assigned and stored in a cookie. How can I store that cookie and use it when loading a WKWebView (or SafariViewController although I don't think that's possible, but I'd love to be wrong).
Asked
Active
Viewed 556 times
1
-
I did this but i was usign UIWebView, could it help? – Federico Picci Aug 02 '18 at 13:51
-
It could help if I see what you did. – raginggoat Aug 02 '18 at 13:52
-
Using UIWebView, the ViewControlled implements UIWebViewDelegate, then sets the cookie in webView( ... shouldStartLoadWith request: URLRequest ... ). – Federico Picci Aug 02 '18 at 14:00
-
Possible duplicate of [How to add HTTP headers in request globally for iOS in swift](https://stackoverflow.com/questions/28984212/how-to-add-http-headers-in-request-globally-for-ios-in-swift) – Federico Picci Aug 02 '18 at 14:02