Vue-axios request interface failed

this.axios.post("help/liushui").then((response) => {
    console.log(response)
  }).catch((response) => {
    console.log(response)
  })

there is a mistake in this request
config/index.js

proxyTable: {
      "/apidomain": {
        target: "http://www.xxx.com", // ip
        changeOrigin: true,
        pathRewrite: {
          "^/apidomain": ""
        }
      }
    }

reported this error

POST http://localhost:8080/help/liushui 404 (Not Found)
Mar.11,2021

Cross-domain issues can be found in https://codeshelper.com/a/11.


. The requested address does not allow requests from' http://localhost:8080'

.
Menu