简体   繁体   English

无法将请求 /api/products 从 localhost:3000 代理到 http://127.0.0.1:5000

[英]Could not proxy request /api/products from localhost:3000 to http://127.0.0.1:5000

powershell powershell

browser console package.json file浏览器控制台package.json 文件

For proxy, you have to set this in your package.json对于代理,您必须在 package.json 中进行设置

"proxy": "http://localhost:3000",

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 出现错误:无法将请求/ api / plaid / accounts从localhost:3000代理到http:// localhost:5000 / - getting error : Could not proxy request /api/plaid/accounts from localhost:3000 to http://localhost:5000/ “React 代理错误:无法将请求 /api/ 从 localhost:3000 代理到 http://localhost:5000 (ECONNREFUSED)”?错误.. 没有在线解决方案 - "React Proxy error: Could not proxy request /api/ from localhost:3000 to http://localhost:5000 (ECONNREFUSED)'? Error.. No solution online 代理错误:无法代理请求 /api/house-listing 从 localhost:3000 到 http://localhost:5000? (ECONNRESET)、MERN - Proxy error: Could not proxy request /api/house-listing from localhost:3000 to http://localhost:5000? (ECONNRESET), MERN 代理错误:无法代理请求...从 localhost:3000 到 http://localhost:5000/ - Proxy error: Could not proxy request ... from localhost:3000 to http://localhost:5000/ 代理错误:无法代理请求/时间从 localhost:3000 到 http://localhost:5000 - Proxy error: Could not proxy request /time from localhost:3000 to http://localhost:5000 MERN 堆栈中的代理错误:无法将请求 /contact 从 localhost:3000 代理到 http://localhost:5000 - Proxy error in MERN stack: Could not proxy request /contact from localhost:3000 to http://localhost:5000 代理错误:无法代理请求/用户从 localhost:3000 到 http://localhost:5000/ - Proxy error: Could not proxy request /users from localhost:3000 to http://localhost:5000/ 无法从 localhost:3000 代理请求 /pusher/auth 到 http://localhost:5000 (ECONNREFUSED) - Could not proxy request /pusher/auth from localhost:3000 to http://localhost:5000 (ECONNREFUSED) 代理错误:无法将请求 /adduser 从 localhost:3000 代理到 http://127.0.0.1/4000 - Proxy error: Could not proxy request /adduser from localhost:3000 to http://127.0.0.1/4000 无法将请求/ api / user从localhost:3000代理到http:// localhost:3000 / - Could not proxy request /api/user from localhost:3000 to http://localhost:3000/
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM