Cross-domain proxy problem of config configuration in webpack in vue Project

the config configuration of the cross-domain proxy in webpack in the vue project has been successful, and even the interface has a return value, but the incorrect path of the request is still the local localhost:8080. Ask which god to help solve this problem

ue webpackconfiglocalhost:8080 java





localhost:8080;


data request has a return value, but the returned information is incorrect. Which god knows what the problem is?

the environmental background of the problems and what methods you have tried

related codes

/ / Please paste the code text below (do not replace the code with pictures)

what result do you expect? What is the error message actually seen?

Jan.08,2022

localhost:8080 is the development server address used by the developer. ProxyTable configures the interface address of the data requested by the development server


No problem. After you set the proxy, it is normal to see or request the localhost, interface to return data during browser debugging.


this is normal. What is actually taken is the address of the agent, but it is shown as the local address in the browser. The principle behind
: it should be forwarded by the node service proxy from the local webpack .
if you don't understand, think like this:
for example, if you use vpn , I clearly have a domestic IP address, so why can Mao still visit the walled site?
it must be the vpn server that acts as a proxy, you request an address, it sends the request to the destination, and then accepts the request and returns it to you. This is called an agent.

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-1b39e12-4120d.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-1b39e12-4120d.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?