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?