Skip to content

Commit 0dced49

Browse files
authored
Added local url instructions to readme
1 parent 7e8735b commit 0dced49

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,10 @@ Future<String> loadJS(String name) async {
161161
}
162162
```
163163

164+
### Accessing local files in the file system
165+
Set the `withLocalUrl` option to true in the launch function or in the Webview scaffold to enable support for local URLs.
166+
167+
Note that, on iOS, the `localUrlScope` option also needs to be set in the Webview scaffold to the local path where file access should be allowed, otherwise, only the requested file will be allowed, resulting in so subresources being loaded. This option is ignored on Android.
164168

165169
### Webview Events
166170

0 commit comments

Comments
 (0)