You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
Sometimes I meet CORS issues on Android devices/simulators as well.
Describe the solution you'd like
It would be helpful to have the same proxy functionality on Android platform.
Describe alternatives you've considered cordova-plugin-advanced-http can be treated as alternative. CORS restrictions do not apply for it. But it is full-featured HTTP client which functionality in many points exceeds required minimum. Single lightweight plugin for this particular task would be preferable.
UPDATE
Found this issue in cordova-android repo. It solved my problem completely.
Shortly: need to add <preference name="AndroidInsecureFileModeEnabled" value="true" /> to config.xml. It disables the CORS enforcement for Cordova 10.x.
The text was updated successfully, but these errors were encountered:
We did some experimentation to see if we could implement the feature on Android similar to iOS. Unfortunately the WebView on Android does not have the necessary API for implementing this plugin. We could make GET requests work but POST requests are a problem.
@NiklasMerz
Thanks. Just found a workaround for CORS problem that is built-in to cordova-android. Updated my first post accordingly. Tested for GET requests only.
Is your feature request related to a problem? Please describe.
Sometimes I meet CORS issues on Android devices/simulators as well.
Describe the solution you'd like
It would be helpful to have the same proxy functionality on Android platform.
Describe alternatives you've considered
cordova-plugin-advanced-http
can be treated as alternative. CORS restrictions do not apply for it. But it is full-featured HTTP client which functionality in many points exceeds required minimum. Single lightweight plugin for this particular task would be preferable.UPDATE
Found this issue in
cordova-android
repo. It solved my problem completely.Shortly: need to add
<preference name="AndroidInsecureFileModeEnabled" value="true" />
toconfig.xml
. It disables the CORS enforcement for Cordova 10.x.The text was updated successfully, but these errors were encountered: