Skip to content

failed in browser with same domain #1

Description

@elhakimz

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions