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.

Loading local files broken since `11.22.0` on Android (`net::ERR_ACCESS_DENIED`)

See original GitHub issue

Bug description: Since version 11.22.0, it is not possible anymore to load a uri pointing to the file system on Android. The WebView shows an error message.

This

source={{uri: "file:///..."}}`) 

leads to this

net::ERR_ACCESS_DENIED

I am aware of the allowFileAccess setting and have set it to true.

It works fine on version 11.21.2.

Expected behavior: Uris pointing to file system should load without error.

Environment:

  • OS: Android
  • OS version: 12
  • react-native version: 0.69.6
  • react-native-webview version: 11.22.0

Issue Analytics

  • State:open
  • Created a year ago
  • Reactions:6
  • Comments:9

github_iconTop GitHub Comments

2reactions
TheAlmightyBobcommented, Nov 2, 2022

Can you share a repro? I tried a quick test and it was working for me.

0reactions
TheAlmightyBobcommented, Dec 22, 2022

Dropping back to 11.21.2 still gives me the same permission error

Curious. Thanks for the info.

Read more comments on GitHub >

github_iconTop Results From Across the Web

No results found

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