Browse Source

Only allow ssl errors in debug

Thibault 4 years ago
parent
commit
94ad6eac98

+ 1
- 1
android/src/main/java/com/reactnativecommunity/webview/RNCWebViewManager.java View File

725
 
725
 
726
     @Override
726
     @Override
727
     public void onReceivedSslError(WebView view, SslErrorHandler handler, SslError error) {
727
     public void onReceivedSslError(WebView view, SslErrorHandler handler, SslError error) {
728
-      if (mignoreSslErrors) {
728
+      if (ReactBuildConfig.DEBUG && mignoreSslErrors) {
729
         handler.proceed();
729
         handler.proceed();
730
       }
730
       }
731
 
731
 

+ 2
- 0
docs/Reference.md View File

1095
 
1095
 
1096
 Ignore Ssl errors encountered in the webview. 
1096
 Ignore Ssl errors encountered in the webview. 
1097
 
1097
 
1098
+Works only in debug mode.
1099
+
1098
 | Type    | Required | Platform |
1100
 | Type    | Required | Platform |
1099
 | ------- | -------- | -------- |
1101
 | ------- | -------- | -------- |
1100
 | boolean | No       | Android      |
1102
 | boolean | No       | Android      |