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

How to get react + capacitor app to run on http instead of https?

$
0
0

I am trying to get my android app, built from react DOM + Capacitor, to make http calls to my backend server hosted on my local machine. but I am getting this error:

File: https://localhost/static/js/main.d75ef995.js - Line 2 - Msg: Mixed Content: The page at 'https://localhost/login' was loaded over HTTPS, but requested an insecure XMLHttpRequest endpoint 'http://10.0.0.193:2201/api/user/login'. This request has been blocked; the content must be served over HTTPS.

So the question is, how to get capacitor to run the frontend side of the app on http, so that I don't get the Mixed Content error.


Viewing all articles
Browse latest Browse all 1792

Trending Articles



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