在heroku应用程序中部署我的react应用程序在“ http”中工作但未通过“ https”加载后发生安全错误,如何解决此问题?

时间:2019-12-27 07:29:55

标签: reactjs heroku

package.json:

{
  "name": "todo",
  "version": "0.1.0",
  "private": true,
  "engines": {
    "node": "10.15.3",
    "npm": "6.4.1"
  },
  "dependencies": {
    "@material-ui/core": "^4.8.1",
    "@material-ui/icons": "^4.5.1",
    "@testing-library/jest-dom": "^4.2.4",
    "@testing-library/react": "^9.4.0",
    "@testing-library/user-event": "^7.2.1",
    "react": "^16.12.0",
    "react-dom": "^16.12.0",
    "react-scripts": "3.3.0"
  },
  "scripts": {
    "start": "react-scripts start",
    "build": "react-scripts build",
    "test": "react-scripts test",
    "eject": "react-scripts eject"
  },
  "eslintConfig": {
    "extends": "react-app"
  },
  "browserslist": {
    "production": [
      ">0.2%",
      "not dead",
      "not op_mini all"
    ],
    "development": [
      "last 1 chrome version",
      "last 1 firefox version",
      "last 1 safari version"
    ]
  }
}

上面是我的反应应用程序的package.json代码,我尝试通过添加https = true来尝试解决,但错误仍未解决,因此请给出答复是否有解决方案。
screenshot of error while loading on https page

0 个答案:

没有答案