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(android): don't proxy requests if no jsInjector #7199

Merged
merged 3 commits into from
Jan 22, 2024
Merged

Conversation

jcesarmobile
Copy link
Member

@jcesarmobile jcesarmobile commented Jan 19, 2024

When using live reload or loading from an external server all requests are still being proxied, but they shouldn't as the new injector doesn't really need to proxy requests anymore, it's just there as fallback in case the jsInjector doesn't work for some reason.
I've moved the if (jsInjector != null) check to be the first thing so it doesn't proxy if not needed.

closes #4240
closes #4437
closes #5301
closes #5428
closes #5872
closes #6449

@jcesarmobile jcesarmobile merged commit 7dc5585 into main Jan 22, 2024
6 checks passed
Capacitor Engineering ⚡️ automation moved this from Needs review 🤔 to Done 🎉 Jan 22, 2024
@jcesarmobile jcesarmobile deleted the no-proxy branch January 22, 2024 13:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Development

Successfully merging this pull request may close these issues.

bug: Android web view encapsulate 302 redirection response
3 participants