From b2c0b7efb1c7cd1c909178715ae76a4b9793cf5a Mon Sep 17 00:00:00 2001 From: zhaojs <349234519@qq.com> Date: 星期二, 25 七月 2023 10:51:45 +0800 Subject: [PATCH] no message --- h5/apph5/manifest.json | 11 +++++++++++ 1 files changed, 11 insertions(+), 0 deletions(-) diff --git a/h5/apph5/manifest.json b/h5/apph5/manifest.json index 7873e4e..64dd969 100644 --- a/h5/apph5/manifest.json +++ b/h5/apph5/manifest.json @@ -72,6 +72,17 @@ "h5" : { "router" : { "mode" : "history" + }, + "devServer" : { + "proxy" : { + //閰嶇疆浠g悊鏈嶅姟鍣ㄦ潵瑙e喅璺ㄥ煙闂锛寀niapp涓嶉�傜敤CORS鏂规鍜岃缃甁SONP鏂规 + "/api/" : { + //鏄犲皠鍩熷悕 + "target" : "http://dfg.shop.com", //娴嬭瘯鐜 + "changeOrigin" : true, //鏄惁璺ㄥ煙 + "secure" : true // 鏄惁鏀寔 https 鍗忚鐨勪唬鐞� + } + } } } } -- Gitblit v1.9.3