Http://localhost:8000/user request is http://localhost:8000/server/user

proxyTable: {

  "/server": {
        target: "http://localhost:8000/", // ?
        // secure: false,  // https?
        changeOrigin: true, // ?
        // pathRewrite: {
        //   "^/api": ""
        // }
    }

    "/user": {
        target: "http://localhost:8000/user/register", // ?
        secure: true,  // https?
        changeOrigin: true, // ?
        // pathRewrite: {
        //   "^/api": ""
        // }
    },
    
    }
Mar.20,2021

localhost:800 or localhost:8000?
and I don't quite understand why the second secure is set to true,. From the point of view of the code, you just link to the interface of http


when the backend interface address is / server/user/register, frontend request, the url address is written / server/user/register,

'/server': {
target: 'http://localhost:8000', //   /
changeOrigin: true
}
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b36f22-2c04e.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b36f22-2c04e.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?