From 7d4fdfa7199d0212a769a6b83fee3a1828cdfc6f Mon Sep 17 00:00:00 2001 From: Artur Arseniev Date: Thu, 30 Aug 2018 01:04:04 +0200 Subject: [PATCH] Add CORS to the dev server --- webpack.config.js | 1 + 1 file changed, 1 insertion(+) diff --git a/webpack.config.js b/webpack.config.js index 9184b86bf..f5a5107c6 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -40,6 +40,7 @@ module.exports = env => { plugins: plugins, mode: isProd ? 'production' : 'development', devtool: isProd ? 'source-map' : (!env ? 'cheap-module-eval-source-map' : false), + devServer: { headers: { 'Access-Control-Allow-Origin': '*' } }, module: { rules: [{ test: /\/index\.js$/,