Refs #12364 - Allow running webpack dev server on any hostname
Currently, SecureHeaders only allows running the webpack dev server from localhost or 0.0.0.0, and only using http. This leads to issues when attempting to run foreman inside a virtual machine or using https. This patch will generate the correct headers during runtime, to allow the dev server to be run on the same host and protocol as the request uses.
Related issues
Refactor #12364: Use NPM+Webpack to manage external assets (js, css, fonts)
Refs #12364 - Allow running webpack dev server on any hostname
Currently, SecureHeaders only allows running the webpack dev server from
localhost or 0.0.0.0, and only using http. This leads to issues when
attempting to run foreman inside a virtual machine or using https. This
patch will generate the correct headers during runtime, to allow the dev
server to be run on the same host and protocol as the request uses.