Hi,
I am trying to call an external API from within Dynamics CRM to retrieve data from external system. But it gets blocked as the API is hosted over http. It says it requires https type request. I tried using XMLHttpRequest. Does the API needs to be hosted over https to successfully get data from external systems using JavaScript?
*This post is locked for comments
I found this thread before.
Http/Https both should work fine.
If its a get request, datatype jsonp in ajax should solve cross origin issues.
If its a post request then you may need to make sure that your api supports cross origin calls, please refer below blog to configure the same,
Also, there are a few options for CRM - have a look at what Scott Durow replied here:
You can sent your request to any site, but there is one problem:
All requests (except simple requests) to other sites browsers marks as cross domain requests, so, response server need to send an information, that this request allowed.
More info:
Better google it (I know good description, but it's on Russian)
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal... 291,253 Super User 2024 Season 2
Martin Dráb 230,188 Most Valuable Professional
nmaenpaa 101,156