Cannot Initialize app - Access to XMLHttpRequest has been blocked by CORS policy
Hi all, When trying to run a hybrid app which is hosted in the SAP cloud I get a “Cannot initialize app” error. When debugging I get to see the following information Syncing and starting up index.html:1 Access to XMLHttpRequest at 'https://???????????.hana.ondemand.com/components.json?1565176195811' from origin 'file://' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. bundle.js:1 Failed to sync and startup bundle.js:1 Error: Failed to sync and startup. Does someone know what exactly is going wrong there and how to fix it? best regards, Fabian
Hi Fabian, it turns out it's a bug in webview v76 on android. I can confirm that if you install chrome beta on your android device and use v77 for webview implementation, then the issue does not occur.