GitHub user breautek added a comment to the discussion: Is there any way to bypass CORS requirement with native `fetch()`, on Android platform?
CORS is a browser mechanism. So it's tied to all browser features. There is no way to use the browser `fetch` implementation and disable CORs. The webview SDK offers no configuration ability for this. You can however use a cordova plugin that implements http request using the native network stack (e.g. `okhttp` or some networking library) to make the request. These network request aren't bound by CORS rules since it's not a browser. If the plugin "implements" the `fetch` interface, then you can probably override `window.fetch` with the cordova plugin function. 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 `img` tag source, but you could still download the source and form a blob url to use as a workaround. Apache doesn't have any plugins to do networking in that fashion, but I do know there are third-party ones available. GitHub link: https://github.com/apache/cordova/discussions/504#discussioncomment-11092764 ---- This is an automatically sent email for issues@cordova.apache.org. To unsubscribe, please send an email to: issues-unsubscr...@cordova.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org For additional commands, e-mail: issues-h...@cordova.apache.org