From b0123312510cb86f2d3dc354a26d46500aee070c Mon Sep 17 00:00:00 2001 From: Shawn Erquhart Date: Mon, 22 May 2017 13:26:15 -0400 Subject: [PATCH] disable host check and cors on dev server --- webpack.dev.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/webpack.dev.js b/webpack.dev.js index 2c020032..1dec5f1f 100644 --- a/webpack.dev.js +++ b/webpack.dev.js @@ -58,5 +58,7 @@ module.exports = merge.smart(require('./webpack.base.js'), { contentBase: 'example/', historyApiFallback: true, devTool: 'cheap-module-source-map', + disableHostCheck: true, + headers: {"Access-Control-Allow-Origin": "*"}, }, });