Skip to content
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

Use https scheme and appassets.androidplatform.net instead of file:// for android. #452

Merged
merged 1 commit into from
Aug 16, 2023

Conversation

jonored
Copy link
Contributor

@jonored jonored commented Mar 6, 2023

This follows the usage recommended at
https://developer.android.com/reference/androidx/webkit/WebViewAssetLoader to avoid an issue where assets referred to by file:// urls would receive a permissions error and never be passed to shouldInterceptRequest in sufficiently high API levels.

It may be appropriate to expose a method to use a different base URI, which could simplify CORS for android apps in some use cases, and additionally a full conversion to WebViewAssetLoader might be reasonable.

… for android.

This follows the usage recommended at
https://developer.android.com/reference/androidx/webkit/WebViewAssetLoader
to avoid an issue where assets referred to by file:// urls would receive
a permissions error and never be passed to shouldInterceptRequest in
sufficiently high API levels.

It may be appropriate to expose a method to use a different base URI,
which could simplify CORS for android apps in some use cases, and
additionally a full conversion to WebViewAssetLoader might be
reasonable.
@jonored jonored force-pushed the jg/android-webview-asset-permissions-update branch from cff4412 to 396da6b Compare March 6, 2023 17:48
@ali-abrar ali-abrar merged commit 8c3cbf9 into develop Aug 16, 2023
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