我已经使用Postman从localhost:4444->具有API的远程服务器创建了一个代理。远程服务器已启用CORS-任何主机都可以执行OPTIONS,GET,POST等操作。
现在,当我在localhost:8080
上运行前端应用程序并对X localhost:4444
进行XHR调用时,我会遇到典型的CORS错误:
http://localhost:8080/#/profile:1 Access to XMLHttpRequest at 'http://localhost:4444/auth/me'
from origin 'http://localhost:8080' has been blocked by CORS policy:
Response to preflight request doesn't pass access control check:
No 'Access-Control-Allow-Origin' header
我希望人们可以向Postman注册各种服务器<->客户端对的请求/响应。
我做错了什么?