Self-signed certificate https doesnt work in release build

@Vartex05 Thanks for your quick reply. I solve on android, adding onReceivedSslError override method inside BridgeWebViewClient.java.

file path: src/main/java/com/getcapacitor/BridgeWebViewClient.java

  @Override
  public void onReceivedSslError(WebView view, SslErrorHandler handler, SslError error) {
    handler.proceed();
  }

Has anyone found a solution for ios with capacitor?
Thanks in advance

What works for me while developing for Android is adding the domain/ip to an allow list with cleartextTrafficPermitted set.

    <domain-config cleartextTrafficPermitted="true">
        <domain includeSubdomains="true">localhost</domain>
        <domain includeSubdomains="false">10.0.2.2:5001</domain>
    </domain-config>

On iOS setting NSAppTransportSecurity/NSExceptionDomains helped.