app.request.postJSON error

My app.request.postJSON to http were working fine but I’ve just updated cordova and android and now I’m getting:

Mixed Content: The page at ‘https://localhost/index.html’ was loaded over HTTPS, but requested an insecure XMLHttpRequest endpoint ‘’. This request has been blocked; the content must be served over HTTPS.

You’ll need to upgrade your remote server to use HTTPS