diff --git a/webpack.config.js b/webpack.config.js index 0ba09a3..884fd37 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -85,7 +85,12 @@ if (devBuild) { config.devServer = { hot: true, contentBase: path.resolve('./web/'), - inline: true + inline: true, + headers: { + 'Access-Control-Allow-Origin': '*', + 'Access-Control-Allow-Methods': 'GET, POST, PUT, DELETE, PATCH, OPTIONS', + 'Access-Control-Allow-Headers': 'X-Requested-With, content-type, Authorization' + } } config.plugins.push( new webpack.HotModuleReplacementPlugin()