zhaojs
2023-07-31 8dcfae4fff98fbbb19ff46bd9750f25bc56801a9
h5/apph5/manifest.json
@@ -72,6 +72,24 @@
    "h5" : {
        "router" : {
            "mode" : "history"
        },
        "devServer" : {
            "public" : "0.0.0.0",
            "proxy" : {
                //配置代理服务器来解决跨域问题,uniapp不适用CORS方案和设置JSONP方案
                "/openwize/" : {
                    //映射域名
                    "target" : "http://vx8.cc", //测试环境
                    "changeOrigin" : true, //是否跨域
                    "secure" : true // 是否支持 https 协议的代理
                },
                "/api/" : {
                    //映射域名
                    "target" : "http://dfg.shop.com", //测试环境
                    "changeOrigin" : true, //是否跨域
                    "secure" : true // 是否支持 https 协议的代理
                }
            }
        }
    }
}