summaryrefslogtreecommitdiff
path: root/config/webpack.config.js
diff options
context:
space:
mode:
authorKushal Pandya <kushal@gitlab.com>2018-05-24 18:41:59 +0530
committerKushal Pandya <kushal@gitlab.com>2018-05-24 18:41:59 +0530
commite78b2190f82e75aae763492fdf86a3df31719ae4 (patch)
treeafb439eab1925ad0de16ec8d55e4ce9fe02fd4b0 /config/webpack.config.js
parent3f7b9244dcf76841bcd32087842d51988a5387b5 (diff)
downloadgitlab-ce-e78b2190f82e75aae763492fdf86a3df31719ae4.tar.gz
Add `Access-Control-Allow-Headers` to Webpack Dev Server config
Diffstat (limited to 'config/webpack.config.js')
-rw-r--r--config/webpack.config.js5
1 files changed, 4 insertions, 1 deletions
diff --git a/config/webpack.config.js b/config/webpack.config.js
index 27050e7069d..d6ab32972fb 100644
--- a/config/webpack.config.js
+++ b/config/webpack.config.js
@@ -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,