Force my heroku app to use SSL (https)

前端 未结 9 1168
栀梦
栀梦 2020-11-30 03:42

I have a node app running successfully on Heroku. I have purchased an Expedited SSL certificate and it all works fine. I go to https... and get a full \'green bar\' proving

9条回答
  •  一向
    一向 (楼主)
    2020-11-30 04:19

    You can redirect HTTP requests to HTTPS in the infrastructure layer too, requiring no changes to your application.

    The Edge CDN addon offers a "redirect HTTP to HTTPS" option.

    It puts the AWS CloudFront CDN in front of your app which is handles the redirect.

    The Heroku router doesn't have this feature.

提交回复
热议问题