Quantcast
Channel: Active questions tagged ubuntu - Stack Overflow
Viewing all articles
Browse latest Browse all 5956

Mixed Content HTTP/HTTPS issue on my android-app

$
0
0

I'm currently working on a university project where I'm setting up a server to communicate with an app running on an Android phone. Since the server is just for demonstration purposes, it doesn't have an HTTPS certificate. The Server is running on Ubuntu 20.04 Whenever I try to send data to the server, I get the following error:

https://localhost/polyfills.826f909f93350bf7.js - Line 1 - Msg: Mixed Content: The page at 'https://localhost/form' was loaded over HTTPS, but requested an insecure resource 'http://###IP-Address###:8080/Server.php'. This request has been blocked; the content must be served over HTTPS.

I tried to change the Android manifest by adding:

android:usesCleartextTraffic="true"

but that didn't work. Since all of this is just for demonstration purposes, is there a way to make the communication work? I read about using some kind of proxy or disabling security features of the phone, but nothing was really dealing with a case similar to mine.


Viewing all articles
Browse latest Browse all 5956

Trending Articles