How to run cordova app webview on http://localhost instead of https://localhost ?
I have been compiling my app with API Level (targetSdkVersion) 30 and as far as I know my app was running internally over http, since all CORS requests to http urls were working fine.Now as required by playstore I'm using targetSdkVersion 31 and I see my app is running over https, therefore the webview is blocking CORS requests to http.
Mixed Content: The page at 'https://localhost/index.html' was loaded over HTTPS, but requested an insecure XMLHttpRequest endpoint 'http://www...com/ajax/get_domain.json.php'. This request has been blocked; the content must be served over HTTPS.