Replies: 3 comments 3 replies
-
CORS is a browser mechanism. So it's tied to all browser features. There is no way to use the browser You can however use a cordova plugin that implements http request using the native network stack (e.g. A drawback to this is there are going to be some browser features that can't be mapped to the native network stack, e.g. supplying an Apache doesn't have any plugins to do networking in that fashion, but I do know there are third-party ones available. |
Beta Was this translation helpful? Give feedback.
-
Thanks for the clarification. If there is no way to bypass
My understanding of |
Beta Was this translation helpful? Give feedback.
-
Thanks, so it looks like using 3rd-party plugins like |
Beta Was this translation helpful? Give feedback.
-
On Cordova 12, I want to access resources not controlled by myself (i.e. I can't add CORS in the response header), on Android platform. I know it's impossible on browser platform due to sandbox/security constraints, but it should be possible on mobile platforms.
This is my
www/index.html
:And this is
www/js/index.js
:I've added
<access>
intoconfig.xml
, but it seems not working:The error message in the console is:
Beta Was this translation helpful? Give feedback.
All reactions