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,7 +725,7 @@ public class RNCWebViewManager extends SimpleViewManager<WebView> {
725 725
 
726 726
     @Override
727 727
     public void onReceivedSslError(WebView view, SslErrorHandler handler, SslError error) {
728
-      if (mignoreSslErrors) {
728
+      if (ReactBuildConfig.DEBUG && mignoreSslErrors) {
729 729
         handler.proceed();
730 730
       }
731 731
 

+ 2
- 0
docs/Reference.md View File

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