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