相关疑难解决方法(0)

Heroku NodeJS http到https ssl强制重定向

我有一个应用程序启动并运行在heroku上使用https表达节点.如何识别强制重定向到heroku上的nodejs的协议?

我的应用程序只是一个简单的http服务器,它(尚未)实现heroku发送它的https请求:

/* Heroku provides the port they want you on in this environment variable (hint: it's not 80) */
app.listen(process.env.PORT || 3000);
Run Code Online (Sandbox Code Playgroud)

ssl https redirect heroku node.js

100
推荐指数
6
解决办法
4万
查看次数

标签 统计

heroku ×1

https ×1

node.js ×1

redirect ×1

ssl ×1