From 6d55ce8a2d17885cd68c35ac3479b8edd02c1191 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ken-H=C3=A5vard=20Lieng?= Date: Thu, 1 Jun 2017 23:17:15 +0200 Subject: [PATCH] Enable dev-middleware CORS --- client/gulpfile.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/client/gulpfile.js b/client/gulpfile.js index 79572f78..eb21498c 100644 --- a/client/gulpfile.js +++ b/client/gulpfile.js @@ -98,7 +98,10 @@ gulp.task('dev', ['css', 'fonts', 'fonts:woff', 'config', 'compress:dev', 'binda app.use(require('webpack-dev-middleware')(compiler, { noInfo: true, - publicPath: config.output.publicPath + publicPath: config.output.publicPath, + headers: { + 'Access-Control-Allow-Origin': '*' + } })); app.use(require('webpack-hot-middleware')(compiler));