Hello everyone,
I am trying to display the k2 worklist items for users from REST.svc using the below link:
http://localhost:81/K2Services/rest.svc/Worklist/Items?$format=json
I am using Jquery in order to display user worklist items. Below is my code:
$(document).ready(function() {
getWorklist();
});
function getWorklist() {
$.ajax({
url: "http://dlx:81/K2Services/rest.svc/Worklist/Items?$format=json",
method: "GET",
dataType: "JSON",
cache: false,
crossDomain: false,
error: function(data, error, status) { alert("Error " + status); },
success: function(data) { alert("Success"); }
});
}
when the client code execute i got the following error:
ErrorType: Access is denied.
In addition to that, If i remove crossDomain:false from the code, I go the following error:
No Transport.
Can you help me Please.