I am calling a rest service from jquery and getting the below CORS error. Can I fix this by just changing the header of jquery request rather than by changing anything in the server side?
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