Allow unverified ssl certificates in WKWebView

后端 未结 6 1000
既然无缘
既然无缘 2020-12-12 21:08

I\'m trying to load a HTTPS url with an self-signed certificate in a WKWebView for iOS 8 and it keeps failing. The workaround used with UIWebView (using setAllowsAnyHTTPSCer

6条回答
  •  悲&欢浪女
    2020-12-12 21:28

    Open the URL in Safari on the device once, there you will be prompted with the option to accept the certificate. Once accepted it should work in your app as well, as the certificate is now known to the device. This is a per device workaround, it will in no way affect your app at release time.

提交回复
热议问题