Forward http requests to https, req.secure not working

后端 未结 0 1501
粉色の甜心
粉色の甜心 2021-02-04 05:36

Whenever I hit the URL with HTTP it does not redirect.

server.js:

app.get(\'/\', function(req,res) {
  console.log(\'get react app\');
  if (req.secure) {
         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题