I need to perform a get and got this error from console
Request header field client_id is not allowed by Access-Control-Allow-Headers in preflight response.
This is what I have for the header:
Access-Control-Request-Headers:accept, authorization, client_id
I would like to remove client_id from the request header for this one call and not affect the global settings.
Here is the code:
$http.get(url,{
headers: {"client_id": undefined }
})
.success(function (geoData) {
d.resolve(geoData);
})
.error(function (err, status) {
d.reject(err);
});
But it has no effect. What am I missing?