0 Replies Latest reply: Aug 11, 2016 8:10 AM by Marvin Mindanao RSS

    QS Repository Service API connect via JQuery Ajax

      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)


      ajax error.PNG


      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) {





      I hope someone can help me solve this issue.