Topic
1 reply Latest Post - ‏2012-03-26T22:32:00Z by navtaj
navtaj
navtaj
12 Posts
ACCEPTED ANSWER

Pinned topic Access Webservices from Portal Theme

‏2012-03-24T22:02:04Z |
Hi All,
We have a requirement wherein we have to pull data from a restful service , to display in the Theme section.
Here's what i have so far ..
In Default.jsp(Using Default Portal theme)


function getDetails() 
{ dojo.xhrGet(
{ url: 
"https://fieldservice.domain.com/restService/details/2", handleAs: 
"text", load: function(data) 
{ alert(data); 
}, error: function(error) 
{ alert(error); 
} 
}); 
}


I am getting the following in the browser

Origin https:
//fieldservice.domain.com/ is not allowed by Access-Control-Allow-Origin


Thanks in advance.
Updated on 2012-03-26T22:32:00Z at 2012-03-26T22:32:00Z by navtaj
  • navtaj
    navtaj
    12 Posts
    ACCEPTED ANSWER

    Re: Access Webservices from Portal Theme

    ‏2012-03-26T22:32:00Z  in response to navtaj
    Hi Guys, any input on the above is appreciated ..

    Below is what i found googling ... question is how/where do i need to configure this.

    http://isolasoftware.it/2011/11/21/origin-http127-0-0-18888-is-not-allowed-by-access-control-allow-origin-gwt-debugging/