Use correct protocol (#1425)
Use correct protocol (#1425)

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.
rossta/webpacker,gauravtiwari/webpacker,rossta/webpacker,rails/webpacker,gauravtiwari/webpacker,rails/webpacker,rossta/webpacker,gauravtiwari/webpacker,rossta/webpacker