我的heroku应用程序是一个 react 应用程序。我遇到了无效主机 header 的问题。
我尝试做的第一件事是创建一个 .env.development 文件夹,但我可能设置错误。如果有人有任何建议,请告诉我。
该存储库位于 github 上 https://github.com/syne612/projectIcarusWebsite如果有人有任何建议请告诉我。
最佳答案
问题可能出在你在客户端设置package.json的代理上。
尝试删除它并重新启动服务器。
欲了解更多信息:https://facebook.github.io/create-react-app/docs/proxying-api-requests-in-development
关于javascript - 无效的主机头 Heroku Node.js React 应用程序,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/53333127/