[ADF-804] webpack proxy setup to avoid CORS problem (#1960)

This commit is contained in:
Eugenio Romano
2017-06-13 19:29:05 +01:00
committed by Eugenio Romano
parent 5699b45f1d
commit b6bf53f457
2 changed files with 25 additions and 3 deletions

View File

@@ -129,7 +129,29 @@ module.exports = {
port: 3000,
historyApiFallback: true,
host: '0.0.0.0',
inline: true
inline: true,
proxy: {
'/ecm': {
target: {
host: "0.0.0.0",
protocol: 'http:',
port: 8080
},
pathRewrite: {
'^/ecm': ''
}
},
'/bpm': {
target: {
host: "0.0.0.0",
protocol: 'http:',
port: 9999
},
pathRewrite: {
'^/bpm': ''
}
}
}
},
node: {