none
Office App and Same-origin policy RRS feed

  • Question

  • Hello,

    I am developing an Office App for Project Professional 2013 (Task Pane) and I am doing Ajax requests (using JQuery.ajax function) to the ProjectData service.

    Everything works well in localhost but of course when I try to reach ProjectData from a different domain (which will be the case for future users using the app), the same-origin policy denies the access to the OData service.

    I have tried everything from adding to the Ajax query datatype:jsonp(the access isn't denied when using jsonp but a parseerror occurs) to directly creating an XDomainRequest or an XMLHttpRequest.

    Nothing gives me the data expected that I get in localhost.

    Has anybody been able to make the cross domain work in an Office App to query the ProjectData service?

    Does ProjectData handles jsonp ?

    Thank you in advance,

    Thomas.


    Tuesday, March 19, 2013 5:59 PM