Even though the origin domain is added in trusted origins, getting CORS error for endpoint “api/v1/apps” whereas the other endpoint “api/v1/users/me” just wokrs fine. Below is the code i have written. Please help me in understanding what might be the issue.
jQuery.ajax({
//url: “https://<>/api/v1/users/me”,
url: “https://<>/api/v1/apps”,
//url: “https://<>/api/v1/apps?filter=user.id+eq+“xxx@abc.com”&expand=user/xxx@abc.com”,
type: ‘GET’,
dataType: ‘json’,
contentType: ‘application/json’,
xhrFields: {
withCredentials: true
},
success: function (data) {
alert(JSON.stringify(data));
alert(“success”);
console.log(JSON.stringify(data));
},
error: function(err){
alert(JSON.stringify(err));
alert(“error”);
}
});