zhaojs
2023-07-24 3b0eb357406f61a843823408cc69375b549086e3
h5/apph5/manifest.json
@@ -74,7 +74,15 @@
            "mode" : "history"
        },
        "devServer" : {
            "https" : false
            "proxy" : {
                //配置代理服务器来解决跨域问题,uniapp不适用CORS方案和设置JSONP方案
                "/api/" : {
                    //映射域名
                    "target" : "http://appapitest.ushopvip.com", //测试环境
                    "changeOrigin" : true, //是否跨域
                    "secure" : true // 是否支持 https 协议的代理
                }
            }
        }
    }
}