Invalid proxy property setting for webpack-dev-server

I want to visit http://localhost:8087/user/send but always proxy to http://localhost:8086/user/send

clipboard.png

clipboard.png

Mar.10,2022

1. The request address you see in the browser is the address before the agent, which is equivalent to your current host, so it is 1086
2. Request 404, indicating that port 1087 may not have this api address. You can access port 1087 directly in the browser. If so, it may be that your proxy configuration is not correct


  

this problem has been solved for a long time. As a result, re-npm run serve has been solved.

Menu