Quantcast
Channel: Active questions tagged https - Stack Overflow
Viewing all articles
Browse latest Browse all 1486

Running cordova app webview with http instead of https

$
0
0

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.

Viewing all articles
Browse latest Browse all 1486

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>