首页 > 解决方案 > Force http in heroku

问题描述

I have a node.js app in heroku , this app uses a Django API which is http, but the heroku app is https and cant make petitions to the API, I get this error

xhr.js:177 Mixed Content: The page at 'https://myapp.herokuapp.com/' was loaded over HTTPS, but requested an insecure XMLHttpRequest endpoint (API HTTP URL). This request has been blocked; the content must be served over HTTPS.

I just want to change the https://myapp.herokuapp.com/ to http://myapp.herokuapp.com/

标签: node.jsdjangohttpherokuhttps

解决方案


推荐阅读