V8.1.0 + Cordova 12.0 => Fetch API cannot load file:///android_asset/www/XXX.html

Works with v7.1.x but with v8.1.0:
Uncaught (in promise) TypeError: Failed to fetch
at framework7-bundle.min.js:13:123375

probably same error as V8 Don't work with Android Studio

same problem with V8.2.0

problem occurs when we try to migrate an old project.

in my case, I had to add a property/preference that is no longer used and now generates that error => remove the following line (or switch the property to false):

<preference name=“AndroidInsecureFileModeEnabled” value=“true” />