Skip to content

Fix iOS local URL support (fixes #114) #493

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
Aug 19, 2019
Merged

Fix iOS local URL support (fixes #114) #493

merged 5 commits into from
Aug 19, 2019

Conversation

rafern
Copy link
Contributor

@rafern rafern commented Jul 26, 2019

Adds a new WebviewScaffold parameter called localUrlScope which is the allowed directory for the URL and sub-resources. This way, local HTML files can read local resources as well, within the allowed directory set in the new parameter. The file URI scheme is now also allowed. If localUrlScope is null, then the old behaviour is used, in which only the local file is allowed and sub-resources are disallowed.

@charafau
Copy link
Collaborator

hi @rafern thanks for PR. Would it be possible to also add note in README how to access that file? I assume that I need to add it to pubspec?

@rafern
Copy link
Contributor Author

rafern commented Aug 15, 2019

I've added instructions on how to use the new option to README and fixed the conflicts. There shouldn't be anything else required in the pubspec unless you want to bump the version up. Feel free to ask for anything else.

@charafau
Copy link
Collaborator

thanks

@charafau charafau merged commit c3b3fcf into fluttercommunity:master Aug 19, 2019
charafau added a commit that referenced this pull request Apr 7, 2020
Fix iOS local URL support (fixes #114)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants