I have a WebView
with primary https
secure connection for payment page. Result of this payment page redirected to my site with http
non secure connection. when user click on first page, that page reloaded instead open my site and i gave this error message:
"Mixed Content: The page at 'http://ift.tt/2gB8Mol' was loaded over a secure connection, but contains a form which targets an insecure endpoint 'http://ift.tt/2fH0tmw'. This endpoint should be made available over a secure connection.", source: http://ift.tt/2gB8Mol (347)
I try 2 way to solve it. first use webviewclient and override onReceivedSslError
and handler.proceed()
inside it. second use if (Build.VERSION.SDK_INT >= 21) { webview.getSettings().setMixedContentMode( WebSettings.MIXED_CONTENT_ALWAYS_ALLOW ); }
but both not working.
Aucun commentaire:
Enregistrer un commentaire