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): make local urls use unpatched fetch #6953

Merged
merged 2 commits into from
Oct 4, 2023
Merged

Conversation

jcesarmobile
Copy link
Member

Converting the resource object to a Request object makes the url absolute, so all the resources are going through the patched fetch even if resource was a relative url before the conversion to Request.
Instead of checking if the url starts with http/https, as all are now, check if the url starts with the server url value, as if it starts with the server url value it should be a local request.
I'm adding a / at the end of the server url so request to the same url but with a different port don't get intercepted.

closes #6944

@jcesarmobile jcesarmobile merged commit e50e56c into main Oct 4, 2023
6 checks passed
@jcesarmobile jcesarmobile deleted the request-check branch October 4, 2023 15:52
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: Ionicons not loading - Failed to connect to localhost/127.0.0.1:80
3 participants