Enable dev-middleware CORS

This commit is contained in:
Ken-Håvard Lieng 2017-06-01 23:17:15 +02:00
parent d9e3d71a1f
commit 6d55ce8a2d

View File

@ -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));