React-native-webview: Getting ERR_CLEARTEXT_NOT_PERMITTED in WebView

Created on 18 Mar 2020  路  3Comments  路  Source: react-native-webview/react-native-webview

Bug description:
Given unsecured links in html
When user click on those links
Then I get an error page with ERR_CLEARTEXT_NOT_PERMITTED

To Reproduce:
Load an html page that include unsecured http links

Expected behavior:
Allow redirect to http links

Screenshots/Videos:
image

Environment:

  • react-native version: 0.61.2

Note that my AndroidManifest.xml includes:
<application android:usesCleartextTraffic="true" />

Related links:

Stale bug report

Most helpful comment

Add the below line in your application tag:

android:usesCleartextTraffic="true"

As shown below:

<application
    ....
    android:usesCleartextTraffic="true"
    ....>

Hope it helps.

https://stackoverflow.com/questions/52707918/webview-showing-err-cleartext-not-permitted-although-site-is-https

All 3 comments

Add the below line in your application tag:

android:usesCleartextTraffic="true"

As shown below:

<application
    ....
    android:usesCleartextTraffic="true"
    ....>

Hope it helps.

https://stackoverflow.com/questions/52707918/webview-showing-err-cleartext-not-permitted-although-site-is-https

Hello 馃憢, this issue has been opened for more than 2 months with no activity on it. If the issue is still here, please keep in mind that we need community support and help to fix it! Just comment something like _still searching for solutions_ and if you found one, please open a pull request! You have 7 days until this gets closed automatically

Screenshot_2020-06-14-15-38-50-690_com intexer
I am also faceing same issue

Was this page helpful?
0 / 5 - 0 ratings

Related issues

jayshah123 picture jayshah123  路  3Comments

ranshine picture ranshine  路  3Comments

celciusjj picture celciusjj  路  3Comments

jinzunyue picture jinzunyue  路  3Comments

Kelvin9393 picture Kelvin9393  路  3Comments