I'm testing the scriptlab addin in excel
I try to execute a rest call to an external endpoint, like this
$.ajax({
url: "https://jsonplaceholder.typicode.com/posts/1",
dataType: 'JSON',
headers: {
'Authorization': 'Basic blablabla',
})....
Above is working fine. But on a end point where CORS is enabled, I got a xhr.readyState 0 back.
How can I avoid CORS issues? (I'm not the owner of the end point)