|
@@ -5,6 +5,9 @@ module.exports = {
|
|
|
productionSourceMap:false,
|
|
|
publicPath: './',
|
|
|
devServer: {
|
|
|
+ headers: {
|
|
|
+ 'Access-Control-Allow-Origin': '*',
|
|
|
+ },
|
|
|
open: true,
|
|
|
// host: '192.168.4.170',
|
|
|
host: 'localhost',
|
|
@@ -12,11 +15,13 @@ module.exports = {
|
|
|
proxy: {
|
|
|
'/apis': {
|
|
|
target: 'http://121.37.152.76:8080', // target host
|
|
|
+ // target: 'localhost:8080', // target host
|
|
|
ws: true, // proxy websockets
|
|
|
changeOrigin: true, // needed for virtual hosted sites
|
|
|
pathRewrite: {
|
|
|
'^/apis': '' // rewrite path
|
|
|
- }
|
|
|
+ },
|
|
|
+
|
|
|
},
|
|
|
}
|
|
|
}
|