在Heroku上启用https
我有一个在Heroku上运行的应用程序,带有一个简单的API的Node.js后端和一个React.js前端。 请求代理到后端( http://localhost:5000
)。
当我从React ping API时,出现以下错误:
Mixed Content: The page at 'https://**.herokuapp.com/users' was loaded over HTTPS, but requested an insecure resource 'http://localhost:5000/api/users'. This request has been blocked; the content must be served over HTTPS.
我怎样才能使资源安全?
- 访问由Node的Expressparsing的JSONstringbodyParser()
- 正确的方法来设置响应状态和JSON内容的REST API使用nodejs和express
- 用nodeJS在Heroku上dynamic创build子域名?
- 使用express和node.js更新mongodb中的单个logging
- 是否有可能在node.js请求中设置无限超时?
- Node.js + Express:应用程序不会开始侦听端口80
- debuggingNode / Express – require('express')创build一个中断
- 在Express中更新POST请求的页面内容
- 是否有可能使用Nodejs和Socket.io更新页面的单个部分?