我正在从 jquery 调用休息服务并收到以下 CORS 错误。我可以通过仅更改 jquery 请求的标头而不是更改服务器端的任何内容来解决此问题吗?
XMLHttpRequst cannot load https://myservice.com/api/myservice/?pos=project 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://localhost/2234' is therefore not allowed access. The response had HTTP status code 502