【问题标题】:Redirect React HTTP traffic to HTTPS GCP将 React HTTP 流量重定向到 HTTPS GCP
【发布时间】:2019-10-08 20:29:08
【问题描述】:

目前我的 ReactJS Web 应用程序在 Google Cloud App Engine 柔性环境中运行。 我使用gcloud deploy 命令部署应用程序。

如果我想访问我的网站,我需要在我的网址中添加https。

如何使我的所有 HTTP 请求都重定向到 HTTPS 上的同一路由?

谢谢!

【问题讨论】:

    标签: reactjs google-app-engine google-cloud-platform devops


    【解决方案1】:

    您可以使用以下 react-https-redirect api 从 http 重定向到 https。 https://www.npmjs.com/package/react-https-redirect

    【讨论】:

      猜你喜欢
      • 2014-04-27
      • 2015-12-06
      • 2016-07-27
      • 2021-04-26
      • 2012-04-19
      • 2019-08-26
      • 2017-08-13
      • 1970-01-01
      • 2016-05-09
      相关资源
      最近更新 更多