Hi,
I'm working on a react native app that served a reactJS app via webview. For local development, this reactJS app is running locally (local.domain.com).
The local server works perfectly on the emulator's Safari. However, when I open the App, it's showing this error:
Error Domain=NSURLErrorDomain Code=-1202 \"The certificate for this server is invalid. You might be connecting to a server that is pretending to be local.domain.com which could put your confidential information at risk.\" UserInfo={NSErrorFailingURLStringKey=https://local.domain.com, NSLocalizedRecoverySuggestion=Would you like to connect to the server anyway?, _kCFStreamErrorDomainKey=3, NSErrorFailingURLKey=https://local.domain.com, _kCFStreamErrorCodeKey=-9843, NSLocalizedDescription=The certificate for this server is invalid. You might be connecting to a server that is pretending to be local.domain.com which could put your confidential information at risk.}
I've tried a lots of method such as:
- using Charles Proxy
- having the CA root certificate profile installed and enable full trust for root certificates on it.
but the error is still there.
Did I missing anything?
thanks