Enable dev-middleware CORS
This commit is contained in:
parent
d9e3d71a1f
commit
6d55ce8a2d
@ -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));
|
||||
|
Loading…
Reference in New Issue
Block a user