react-native-webview: Loading local files broken since `11.22.0` on Android (`net::ERR_ACCESS_DENIED`)

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

About this issue

  • Original URL
  • State: open
  • Created 2 years ago
  • Reactions: 6
  • Comments: 20

Most upvoted comments

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

Hi, Any luck on solution here?