Hello. I recently started learning react-native and decided to make a small application from BE to java and FE to react-native. But there was a problem. I configured the connection via https but the WebView form does not want to open the URL with a self-signature certificate and gives the error NSURLErrorDomain -1202. I can’t make a real certificate, as I am deploying only on localhost, there is no domain. If there is any possibility to disable the check on the validity of the certificate?
1 answer
The problem is solved by
<key>NSAppTransportSecurity</key> <dict> <key>NSAllowsArbitraryLoads</key> <true/> <key>NSAllowsArbitraryLoadsInWebContent</key> <true/> <key>NSExceptionDomains</key> <dict> <key>linkedin.com</key> <dict> <key>NSExceptionAllowsInsecureHTTPLoads</key> <true/> <key>NSExceptionRequiresForwardSecrecy</key> <false/> <key>NSIncludesSubdomains</key> <true/> </dict> </dict> </dict> and using WKWebView from 'react-native-wkwebview-reborn'
|
