Could not signal service com.apple.WebKit.WebContent
Set value @"false"
for cookie property @"HttpOnly"
, just like this :
NSHTTPCookie *cookieWID = [NSHTTPCookie cookieWithProperties:[NSDictionary dictionaryWithObjectsAndKeys:
@"wid" ,NSHTTPCookieName,
WID,NSHTTPCookieValue,
@"www.google.com",NSHTTPCookieDomain,
@"",NSHTTPCookiePath,
@"false",@"HttpOnly",
nil]];
Does WKWebView require a URL?
I'm still getting the same error, but I am at least seeing my content now ...
The issue had to do with where I was calling the webView.loadHTMLString. I had to move it inside of my URLSession code instead of keeping it outside.
URLSession.shared.dataTask(with: url) { (data, response, err) in
guard let data = data else { return }
if err == nil {
do {
let decoder = JSONDecoder()
let devo = try decoder.decode(Devotion.self, from: data)
DispatchQueue.main.async {
self.articleBody = devo.body
self.webView.loadHTMLString("\(self.articleBody)", baseURL: nil)
}
} catch let err {
print("Err", err)
}
}
}.resume()
Related Topics
Uiactivityviewcontroller Crashing on iOS 8 Ipads
How to Load Storyboard Programmatically from Class
How to Create Ns_Options-Style Bitmask Enumerations in Swift
How to Parse Json Response from Alamofire API in Swift
How to Create Local Notifications
Xcode 7 Error: "Missing iOS Distribution Signing Identity For ..."
What Kind of Leaks Does Automatic Reference Counting in Objective-C Not Prevent or Minimize
Resizing Uitableview to Fit Content
Execute Action When Back Bar Button of Uinavigationcontroller Is Pressed
Reloaddata() of Uitableview With Dynamic Cell Heights Causes Jumpy Scrolling
How to Programmatically Sense the Iphone Mute Switch
Adding Images or Videos to iPhone Simulator
Do I Need to Disable Nslog Before Release Application
Post Request with a Simple String in Body with Alamofire
Ios7, Segue and Storyboards - How to Create Without a Button