Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

failed in browser with same domain #1

Open
elhakimz opened this issue Jun 3, 2015 · 0 comments
Open

failed in browser with same domain #1

elhakimz opened this issue Jun 3, 2015 · 0 comments

Comments

@elhakimz
Copy link

elhakimz commented Jun 3, 2015

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant