Disable 'localhost' limit

Disale host header so webpack allows more than localhost access
This commit is contained in:
Joel Garboden
2018-04-07 22:34:50 +00:00
parent 9856df5527
commit 5ad828a613

1
devServer.js Normal file → Executable file
View File

@@ -5,6 +5,7 @@ var config = require('./webpack.config.dev');
new WebpackDevServer(webpack(config), {
publicPath: config.output.publicPath,
hot: true,
disableHostCheck: true,
headers: { "Access-Control-Allow-Origin": "*" },
historyApiFallback: {
rewrites: [