diff --git a/config/template.dev.json b/config/template.dev.json index 0e6318a..3505bf7 100644 --- a/config/template.dev.json +++ b/config/template.dev.json @@ -1,3 +1,3 @@ { - "apiHost": "http://account.l" + "apiHost": "https://dev.account.ely.by" } diff --git a/webpack.config.js b/webpack.config.js index f59186d..a7b3723 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -254,11 +254,9 @@ if (!isProduction && !isTest) { host: 'localhost', port: 8080, proxy: { - '/api*': { - headers: { - host: config.apiHost.replace(/https?:|\//g, '') - }, - target: config.apiHost + '/api': { + target: config.apiHost, + changeOrigin: true // add host http-header, based on target } }, hot: true,