Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Currently we can run webpacker in either http or https mode. But if we run webpacker in http mode but access it through a reverse proxy handling https, then it will break because the reverse proxy will have set HTTP_X_FORWARDED_PROTO to https and webpack-dev-server will try to understand the request as a secured one. We must override X_FORWARDED_PROTO in the same way as we override the other headers.
- Loading branch information