我已经为我正在开发的一个应用程序设置了一个前端和一个后端,我想测试在这两个应用程序在localhost中运行时从前端到后端发送的http请求。(app)
console.log("Server is listening on port 8765.")
}) 前端在本地主机3000上运行这是我得到的错误: Access to XMLHttpRequest at 'localhost:8765/...
下面是我得到的错误
Access to XMLHttpRequest at 'http://dummy.restapiexample.com/api/v1/employees' from origin'http://localhost:3000' has been blocked by CORS policy: Request header field access-contro