const proxy = require('http-proxy-middleware') module.exports = function(app) { app.use(proxy('/webapi', { target: 'http://qingqiumarket.cn/MKWMS/webapi', secure: false, changeOrigin: true, pathRewrite: { '^/webapi': '/' } // cookieDomainRewrite: "http://localhost:3000" })) app.use(proxy('/zh-CN', { // 登录接口 target: 'http://qingqiumarket.cn/MKWMS/zh-CN', secure: false, changeOrigin: true, pathRewrite: { '^/zh-CN': '/' } })) app.use(proxy('/mksepc', { target: 'http://minkesoft.com/mksepc', secure: false, changeOrigin: true, pathRewrite: { '^/mksepc': '/' } })) app.use(proxy('/local', { target: 'http://127.0.0.1:8888', secure: false, changeOrigin: true, pathRewrite: { '^/local': '/' } })) }