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

Fallback from https to http? Failing silently #429

Closed
andrewmatte opened this issue May 28, 2019 · 2 comments
Closed

Fallback from https to http? Failing silently #429

andrewmatte opened this issue May 28, 2019 · 2 comments

Comments

@andrewmatte
Copy link

Is there a way to make a request to an HTTPS site fallback to HTTP? When I try accessing a server with HTTPS that only exists in HTTP, I don't get anything from onHttpError or onStateChange.

Thanks!

@charafau
Copy link
Collaborator

Is it android related only? I think it's because of android changed policy on from lollipop (api 21) and you need to specify that you want to allow that explicitly.

https://stackoverflow.com/questions/28626433/android-webview-blocks-redirect-from-https-to-http

it's not implemented now in plugin, but could be added. PRs welcome, but first please create an issue.

@andrewmatte
Copy link
Author

Thanks! I ended up sending an extra request to sites before navigating to them when the protocol is missing. I'm planning to load the data from the first request into the webview from the String output but I have to figure out how to get the cookies from the corresponding domain first.

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

No branches or pull requests

2 participants