Skip to content
关注公众号,获取新课通知

H5端交互跨域问题


manifest.json

json5
{
    "h5" : {
       "devServer" : {
           "https" : false,
           "proxy" : {
               "/api" : {
                   "target" : "http://localhost:7001/",
                   "changeOrigin" : true,
                   "ws" : true,
                   "pathRewrite" : {
                       "^/api" : ""
                   }
               }
           }
       }
   }
}