Skip to content

Commit

Permalink
Invalid Host header when using proxy
Browse files Browse the repository at this point in the history
I am developing on Cloud9. Without this flag set to true, the page just returned  'Invalid Host header'. 

More discussion of this issue here: webpack/webpack-dev-server#882
  • Loading branch information
stevekrouse committed Mar 2, 2018
1 parent 7b7ab8a commit 3d7f1bb
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/cycle-scripts/configs/webpackDevServer.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -88,5 +88,7 @@ module.exports = {
// Enable HTTPS if the HTTPS environment variable is set to 'true'
https: protocol === 'https',
host: host,
// disable host check on dev server to allow 0.0.0.0 as host
disableHostCheck: true,
overlay: false
}

0 comments on commit 3d7f1bb

Please sign in to comment.