Hello,
I'm trying to call a method in a asp.net web api from a web resource using jquery ajax function (I've also tried with xmlhttprequest).
We're using onpremise crm 2016, and this external web api is located in the same server in which crm is installed.
I've tried the same call from another web application I created in the same iis with a different port, and it works fine. But when I deploy it to a web resource (I've even tried from the isv folder inside the crm web app) it fails.
When debugging with IE developer tools in the IE brower in the server, I've getting this message in the console:
XMLHttpRequest: Network Error 0x80070005, Access is denied.
How can I make this work? I've read some articles where other people can do it without doing special configurations and without having to make an action and pass parameters from js to call the external web api from the action.
Thank you.
*This post is locked for comments