AnsweredAssumed Answered


Question asked by blade on Sep 28, 2016
Hi all,

I'm new in Activiti, so I sorry if this topic is duplicated, but I don't find the solution.

I install Activiti-Explorer and Activiti-rest.
Now I want to create a page html with list of workflow development.

I read that there is a API request : http://localhost:8080/activiti-rest/service/repository/deployments
If I put this link in the browser (Mozilla) show me the Window Request Secure : so I put kermit:kermit. Then I have the result. OK

So if I write a code ajax to give me this result I have an error of authorized
"NetworkError: 401 Unauthorized - http://localhost:8080/activiti-rest/service/repository/deployments"

                type: "GET",
           crossDomain: true,
      headers: {
             "content-type": "application/json;charset=UTF-8",
         "Accept-Encoding": "identity",
         "WWW-Authenticate": "Basic realm='Activiti Realm'",
         "Authorization": "Basic a2VybWl0Omtlcm1pdA=="
           url: "http://localhost:8080/activiti-rest/service/repository/deployments",      
              dataType: 'json',
         dataCharset: 'json',
      success: function (response) {
         alert('Thanks for your comment!');
      error: function (xhr, status, error) {
         alert(xhr    + ' - ' + status + '; ' + error);

What did I do wrong?