React failed to cross domain 401 404

401 error message

this is how the agent is configured

my port is localhost:8000, and the background port is localhost:9999,. I don"t know if the proxy has passed. Always 401 error. Ask the boss for a solution.


No code, no exception information. How to solve your problem.

for example, the interface is / api/.

Agent:

"proxy": {
    "/api": {
      "target": "http://localhost:9999"
    }
 }
Menu