Access to XMLHttpRequest at 'https://app.xxxxx.com/api/pub/v1/contacts/528a34f9-dbc1-4c50-ad6b-a9f300e19ea9' from origin 'https://www.xxxx.co.uk' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.
function generateCandidate(cuid){
console.log('Generating New Candidate');
var api = my_api()
var candUrl = "https://app.xxxx.com/api/pub/v1/contacts/" + cuid;
var da = {
api_key: api,
}
jQuery.ajax({
url: candUrl,
data: da,
type: "application/json",
method: 'GET',
success: function(resp){
console.log(resp);
},
error: function(err){
console.log('Ajax ERROR:');
console.log(err.toString());
}
});
}
type: "application/json",
withdataType: 'jsonp',
jquery.js?ver=1.12.4:4 GET https://app.xxxx.com/api/pub/v1/contacts/528a34f9-dbc1-4c50-ad6b-a9f300e19ea9?callback=jQuery1124036525732914578746_1550866428904&_=1550866428905 net::ERR_ABORTED 404
Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.
When asked, what has been your best career decision?
Deciding to stick with EE.
Being involved with EE helped me to grow personally and professionally.
Connect with Certified Experts to gain insight and support on specific technology challenges including:
We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE