Skip to content

Uniapp项目h5跨域问题做本地代理,配置如下

manifest.json

JSON
"devServer": {
            "https": false,
            "port": 8080,
            "disableHostCheck": true,
			"proxy": {
			        "/api": {
			          "target": "https://admin.meetov.com",
			          "changeOrigin": true,
			          "pathRewrite": {
			            "^/api": ""
			          }
			        }
			      }
        },