iOS 14 - Error loading page, Domain: NSURLErrorDomain, Error Code: -1202, Description: The certificate for this server is invalid.
See original GitHub issueI just ran into a cert validation issue when loading a local development server into my webview. Before I updated to iOS 14 this was not a problem and iOS 13.7 had no issues validating the self signed certs that I was using. Suddenly, after applying the iOS 14 update, I am no longer able to load my local web server in the webview using the same certs.
Does anybody know if the TLS cert trust requirements have changed from iOS 13 to iOS 14?
The error I am getting contains the following info:
Error loading page Domain: NSURLErrorDomain Error Code: -1202 Description: The certificate for this server is invalid. You might be connecting to a server that is pretending to be “XX.X.X.XX” which could put your confidential information at risk.
Metro WARN:
Encountered an error loading page {"canGoBack": false, "canGoForward": false, "code": -1202, "description": "The certificate for this server is invalid. You might be connecting to a server that is pretending to be “10.0.1.10” which could put your confidential information at risk.", "didFailProvisionalNavigation": true, "domain": "NSURLErrorDomain", "loading": false, "target": 7, "title": "", "url": ""}
Device:: iPhone 11 Pro, iPhone 11 Pro Max iOS: 14.0 react-native: 0.63.2 react-native-webview: 10.9.0
Issue Analytics
- State:
- Created 3 years ago
- Reactions:9
- Comments:19
Top GitHub Comments
Hello 👋, this issue has been opened for more than 2 months with no activity on it. If the issue is still here, please keep in mind that we need community support and help to fix it! Just comment something like still searching for solutions and if you found one, please open a pull request! You have 7 days until this gets closed automatically
try check your SSL certs on you domain