node.js - 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/
解决方案
推荐阅读
- mongodb - 无法从 istio 访问外部 mongo db 服务器
- intellij-idea - 如何创建 /etc/subversion?
- python - 如何在没有 cuda 的 Windows 中安装 Tensorflow 和 keras
- gremlin - Gremlin 查询以获取未与任何其他顶点连接的顶点列表?
- python-3.x - 每次在 Jupyter 笔记本中运行时如何生成具有新文件名的文件?
- vhdl - Process 中的执行顺序以及 if else :VHDL
- html - 打开虚拟键盘时,iOS 上的 Safari 会滚动到元素之外
- php - php执行链接页面
- javascript - 如何使用 javascript 和 html 复制不同的 div?
- python - 将 DataFrame 插入/附加到 MultiIndex DataFrame