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

Fix for Capacitor issue 7596, remove fragment from allowedOrigin #7597

Closed

Conversation

hbordersTwitch
Copy link

@hbordersTwitch hbordersTwitch commented Aug 1, 2024

If the server.url contains a fragment, then the allowedOrigin rule is not valid and the WebView will not inject plugin javascript. This manifests as the javascript runtime in the WebView reporting that Capacitor.platform is web instead of android and plugin calls within the WebView failing.

This is a fix for #7596

If the `server.url` contains a fragment, then the `allowedOrigin` rule is not valid and the WebView will not inject plugin javascript.
This manifests as the javascript runtime in the WebView reporting that `Capacitor.platform` is `web` instead of `android` and plugin calls within the `WebView` failing.
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.

1 participant