我最近创建了一个反应器,试图将其与后台连接起来,但在提出请求时,它会给西非经共体带来问题。
Problem 1:
Access to XMLHttpRequest at https://localhost:7022/Leads/106/status from origin http://localhost:3000 has been blocked by CORS policy: Response to preflight request doesn t pass access control check: It does not have HTTP ok status.
Problem 2:
Access to XMLHttpRequest at https://localhost:7022/Leads/1 from origin http://localhost:3000 has been blocked by CORS policy: No Access-Control-Allow-Origin header is present on the requested resource.
我如何解决这些问题?
我研究了一些解决办法,但他们都谈到服务器,反之则掌握了这种控制。