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

How to run both react and django on https

$
0
0

I had a react+django app. The react app was on http://my.domain.com, and it called the django app that is on http://my.domain.com:8000.

Now, I have installed an SSL certificate and changed the react app to run on https://my.domain.com. However, whenever it tries to call the django app on http://my.domain.com:8000, I get an error Blocked loading mixed active content “http://my.domain.com:8000/auth/”. This makes sense, because I really have mixed content: an https page (the react app) tries to call http (the django app).

On the other hand, if I change the API call to “https://my.domain.com:8000/auth/”, it does not work at all (it hangs).

How can I let django accept calls through SSL, so that I do not get these mixed content errors?


Viewing all articles
Browse latest Browse all 1561

Trending Articles



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