Disable Host header check in development
This commit is contained in:
parent
fac3f4c5be
commit
2568de0467
|
@ -30,6 +30,7 @@ function createDevServer(publicDir, webpackConfig, devOrigin) {
|
|||
|
||||
// webpack-dev-server options
|
||||
contentBase: false,
|
||||
disableHostCheck: true,
|
||||
before(app) {
|
||||
// This runs before webpack-dev-middleware
|
||||
app.disable("x-powered-by");
|
||||
|
|
Loading…
Reference in New Issue