Encountered Proxy error: Could not proxy request /captchaImage from localhost:81 to http://localhost:80 when pulling down Ruoyi project

Encountered a problem when pulling down the Ruoyi item

 

 After querying, it is found that the path configuration of the target under the proxy in vue.config.js is different from the path set by myself, and it is enough to change them to the same path.

I changed the path in the configuration file to be the same as the path in js. It can be started successfully.

Guess you like

Origin blog.csdn.net/cang_ling/article/details/131484908