apache / cordova-android

Apache Cordova Android
https://cordova.apache.org/
Apache License 2.0
3.59k stars 1.52k forks source link

Cordova undefined when AndroidInsecureFileModeEnabled set to false #1706

Open formidable255 opened 2 weeks ago

formidable255 commented 2 weeks ago

Using cordova android version 12 via voltbuilder.

Currently trying to fix a google recaptcha issue on android where google returns invalid domain. This happens when AndroidInsecureFileModeEnabled is set to true and the origin is file:///. When set to false, the domain becomes 'https' and recaptcha works fine but cordova is undefined inside the project causing non of my plug-ins to work.

Why does cordova become undefined and any way this can be fixed?

jcesarmobile commented 2 weeks ago

can you provide a sample app that reproduces the issue?