Hi,
I am getting this error:
Access to XMLHttpRequest at 'https://{subdomain}.zendesk.com/api/v2/users.json' from origin '{domain name}' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.
$.ajax({
url: 'https://{subdomain}.zendesk.com/api/v2/users.json',
headers: {
'Authorization': 'Basic ('+Base64+')',
'Content-Type': 'application/json'//,
},
CORS: true,
method: 'GET',
})
.done(function(data) {
console.log(data);
})
.fail(function() {
console.log('Failed!');
});
Can you please help me find the solution for this. I have tried and followed the zendesk support articles on this but couldn't find the proper answer.
Thanks
Hi Ali-
May I ask for some more information, specifically, from what context are you making this request, e.g. Zendesk app, etc?