none
Access Control Allow Origin RRS feed

  • Question

  • Hello. I'm developing a Project App in Visual Studio 2013, and I'm trying to do a jQuery ajax call to retrieve json data from the REST API, but I'm getting a Access-Control-Allow-Origin error. I think this might have something to do with the subdomain that my app is running in? Here's the error:

    XMLHttpRequest cannot load http://sharepoint.domain.com/pwa/_api/ProjectServer/EnterpriseResources('c4b3a7c4-6cdc-e311-8c25-0022198e7bfe')/Assignments. No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://app-5b32c2bd5a6d7d.domain.com' is therefore not allowed access.

    How can I setup my environment so the app is running under sharepoint.domain.com/pwa/?

    Or is that not even the problem since both are still under the domain?

    Sorry if this question is very basic. I'm still learning. Thank you for your help.




    • Edited by Sean Gibat Friday, June 13, 2014 2:58 PM
    Friday, June 13, 2014 1:20 PM