Add `Access-Control-Allow-Headers` to Webpack Dev Server config

This commit is contained in:
Kushal Pandya 2018-05-24 18:41:59 +05:30
parent 3f7b9244dc
commit e78b2190f8
1 changed files with 4 additions and 1 deletions

View File

@ -306,7 +306,10 @@ module.exports = {
host: DEV_SERVER_HOST,
port: DEV_SERVER_PORT,
disableHostCheck: true,
headers: { 'Access-Control-Allow-Origin': '*' },
headers: {
'Access-Control-Allow-Origin': '*',
'Access-Control-Allow-Headers': '*',
},
stats: 'errors-only',
hot: DEV_SERVER_LIVERELOAD,
inline: DEV_SERVER_LIVERELOAD,