Hi all,
I've been working a webpage where I can check if an app is available on my Qs Server. To do that, I am trying to use the Repository Service API. At first I tried to use connecting using Postman and it is working well (Response code 200). But when I generate a JavaScript Jquery AJAX from the Postman and put it in a HTML file in my Apache Server, I am having an error (see below screenshot)
Here is the Jquery Script:
var form = new FormData();
form.append("UserDirectory", "AD_Directory");
form.append("UserId", "marmin");
var settings = {
"async": true,
"crossDomain": true,
"url": "http://qlikserver.com/qrs/app/full?Xrfkey=ABCDEFG123456789",
"method": "GET",
"headers": {
"x-qlik-xrfkey": "ABCDEFG123456789",
"cache-control": "no-cache",
"postman-token": "7ef6f2dc-adc2-cdca-d599-51d6947c77d6"
},
"processData": false,
"contentType": false,
"mimeType": "multipart/form-data",
"data": form
}
$.ajax(settings).done(function (response) {
console.log(response);
});
I hope someone can help me solve this issue.
Thanks