You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+50-19Lines changed: 50 additions & 19 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -166,6 +166,32 @@ Set the `withLocalUrl` option to true in the launch function or in the Webview s
166
166
167
167
Note that, on iOS, the `localUrlScope` option also needs to be set to a path to a directory. All files inside this folder (or subfolder) will be allowed access. If ommited, only the local file being opened will have access allowed, resulting in no subresources being loaded. This option is ignored on Android.
168
168
169
+
### Ignoring SSL Errors
170
+
171
+
Set the `ignoreSSLErrors` option to true to display content from servers with certificates usually not trusted by the Webview like self-signed certificates.
172
+
173
+
**_Warning:_** Don't use this in production.
174
+
175
+
Note that on iOS you you need to add new key to `ios/Runner/Info.plist`
176
+
177
+
```xml
178
+
<key>NSAppTransportSecurity</key>
179
+
<dict>
180
+
<key>NSAllowsArbitraryLoads</key>
181
+
<true/>
182
+
<key>NSAllowsArbitraryLoadsInWebContent</key>
183
+
<true/>
184
+
</dict>
185
+
```
186
+
187
+
`NSAllowsArbitraryLoadsInWebContent` is for iOS 10+ and `NSAllowsArbitraryLoads` for iOS 9.
188
+
Otherwise you'll still not be able to display content from pages with untrusted certificates.
189
+
190
+
You can test your ignorance of ssl certificates is working e.g. through https://self-signed.badssl.com/
191
+
192
+
193
+
194
+
169
195
### Webview Events
170
196
171
197
-`Stream<Null>` onDestroy
@@ -182,25 +208,30 @@ Note that, on iOS, the `localUrlScope` option also needs to be set to a path to
0 commit comments