CLOSED
This is not an issue with Create-React-App.
Is this a bug report?
Yes
Which terms did you search for in User Guide?
I initially had an "invalid host header" issue. The README for the create-react-app suggests adding a .env.development file. I did, and I began receiving another error that prevented my Heroku App from even running. No answers I found online could help. I go into detail about that here.
Eventually I caved and added the "DANGEROUSLY_DISABLE_HOST_CHECK" in .env.development.local, and my Heroku app no longer crashed but I received a different error specified here.
Environment
node -v: 6.11.3
npm -v: 5.7.1
yarn --version (if you use Yarn):
npm ls react-scripts (if you haven’t ejected): 1.0.17
Then, specify:
- Operating system: Windows 10
- Browser and version (if relevant): Cross-Browser, but console error messages are from Firefox 58.0.2
Steps to Reproduce
- Clone https://github.com/abagh0703/cra-proxy-error (sorry about the .idea file, forgot to gitignore)
- heroku create (some name)
- heroku buildpacks:set https://github.com/heroku/heroku-buildpack-nodejs#v83 -a (the same some name)
- git push heroku master
Expected Behavior
The app should print "hello" in the console.
Actual Behavior
Heroku gives an error about proxying.

Console gives this less helpful error:

Reproducible Demo
https://github.com/abagh0703/cra-proxy-error
Instructions to reproduce included in readme.
Is it just a matter of using the wrong buildpack? Forgive me if this is too specific for an issue here.
CLOSED
This is not an issue with Create-React-App.
Is this a bug report?
Yes
Which terms did you search for in User Guide?
I initially had an "invalid host header" issue. The README for the create-react-app suggests adding a .env.development file. I did, and I began receiving another error that prevented my Heroku App from even running. No answers I found online could help. I go into detail about that here.
Eventually I caved and added the "DANGEROUSLY_DISABLE_HOST_CHECK" in .env.development.local, and my Heroku app no longer crashed but I received a different error specified here.
Environment
node -v: 6.11.3npm -v: 5.7.1yarn --version(if you use Yarn):npm ls react-scripts(if you haven’t ejected): 1.0.17Then, specify:
Steps to Reproduce
Expected Behavior
The app should print "hello" in the console.
Actual Behavior
Heroku gives an error about proxying.


Console gives this less helpful error:
Reproducible Demo
https://github.com/abagh0703/cra-proxy-error
Instructions to reproduce included in readme.
Is it just a matter of using the wrong buildpack? Forgive me if this is too specific for an issue here.