Quantcast
Channel: Developing Apps for SharePoint 2013 forum
Viewing all articles
Browse latest Browse all 8089

SharePoint hosted App: Issue Calling cross domain URL with $.ajax

$
0
0

I am working on SharePoint hosted app(on SharePoint Server e.g. https://abc.sharepoint.com). I want to send POST request to cross domain URL (https://xyz/rest/post). When i call this cross domain URL, it says access denied. I have check the cross domain URL in ASP.net, it works fine but when i call the same URL in SharePoint hosted app, it gives me access denied error where Jquery want to open XHR request.

I have already added allowed URL as below,

<AppPrincipal>
    <Internal AllowedRemoteHostUrl="https://xyz/rest/post" />
  </AppPrincipal>

Please suggest.


KhanG


Viewing all articles
Browse latest Browse all 8089

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>