helo pefernan, I have test REST API code against my jbpm-console. so far when I tested it with Rest Client and Postman, I could get the result as expected.
then I added some lines to tasklist.jsp:
var username="krisv";
var passwd="krisv";
function loadTaskList() {
$.ajax({
type: "GET",
url: "http://localhost:8080/jbpm-console/rest/task/query?potentialOwner=krisv",
dataType: "text",
beforeSend:function(xhr){
xhr.setRequestHeader ("Authorization", "Basic "+btoa(username+":"+passwd));
},
but when I tested it in a browser I got error like below (using Safari).
helo pefernan, I have test REST API code against my jbpm-console. so far when I tested it with Rest Client and Postman, I could get the result as expected.
then I added some lines to tasklist.jsp:
var username="krisv"; var passwd="krisv"; function loadTaskList() { $.ajax({ type: "GET", url: "http://localhost:8080/jbpm-console/rest/task/query?potentialOwner=krisv", dataType: "text", beforeSend:function(xhr){ xhr.setRequestHeader ("Authorization", "Basic "+btoa(username+":"+passwd)); },
but when I tested it in a browser I got error like below (using Safari).
[Error] XMLHttpRequest cannot load http://localhost:8080/jbpm-console/rest/task/query?potentialOwner=krisv. Origin http://127.0.0.1:8888 is not allowed by Access-Control-Allow-Origin. (127.0.0.1, line 0)
can you give me suggestion regarding this matter?