question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Getting ERR_CLEARTEXT_NOT_PERMITTED in WebView

See original GitHub issue

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:

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:9

github_iconTop GitHub Comments

21reactions
FanShiDecommented, Apr 9, 2020

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

5reactions
HellzAngelcommented, Jun 14, 2020

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

Read more comments on GitHub >

github_iconTop Results From Across the Web

WebView showing ERR_CLEARTEXT_NOT_PERMITTED ...
I was getting an error from the WebView saying net::ERR_CLEARTEXT_NOT_PERMITTED. When I googled the error, I saw that when an app is an ......
Read more >
How to fix the "net::err_cleartext_not_permitted" Android ...
Developers can solve the net::err_cleartext_not_permitted Android Webview error by allowing only HTTPS URLs in their application.
Read more >
Fix ERR_CLEARTEXT_NOT_PERMITTED Error for Websites
There's an easy solution to fix err_cleartext_not_permitted error and i.e. don't use insecure URLs. It is recommended to force HTTPs on your ...
Read more >
How to fix net::ERR_CLEARTEXT_NOT_PERMITTED error
The proper solution for this error is to simply use HTTPS URLs for all of your endpoints and remove all unsecured URLs from...
Read more >
Net::err_cleartext_not_permitted | How to fix
This error means that the application does not allow you to open articles or links with an HTTP URL. The said article or...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found