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.
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',
})