Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKushal Pandya <kushal@gitlab.com>2018-05-24 16:11:59 +0300
committerKushal Pandya <kushal@gitlab.com>2018-05-24 16:11:59 +0300
commite78b2190f82e75aae763492fdf86a3df31719ae4 (patch)
treeafb439eab1925ad0de16ec8d55e4ce9fe02fd4b0 /config/webpack.config.js
parent3f7b9244dcf76841bcd32087842d51988a5387b5 (diff)
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,