web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

Getting cross browser issue while calling third party REST URL in MS dynamics CRM 2016 in IE11

(0) ShareShare
ReportReport
Posted on by 97

I am getting CORS error while calling Third party REST URL from CRM 2016 javascript  in IE 11. If I enable "Access data source across domains" in IE 11 security. It is working fine. As per client polity they are not going to enable "Access data source across domains". How to overcome this issue...

$.ajax({
url: "https://alphaTest:443/sql/management.cls", // example url
type: "POST",
async: false,
crossDomain: true,
contentType: 'text/xml',
headers: {
SOAPAction: "gama.com/Management.Search";// example url
},

beforeSend: function (xhr) {
xhr.setRequestHeader('Access-Control-Allow-origin', '*');
},
data: requestData,
success: function (SOAPResponse, hrs) {
return SOAPResponse;


},
error: function (jqXHR, textStatus, errorThrown) {

}
});

Thanks in Advance...

*This post is locked for comments

I have the same question (0)
  • Verified answer
    a33ik Profile Picture
    84,331 Most Valuable Professional on at

    Hello,

    You have 2 ways:

    1. Ask customer to apply that change to all PCs they use - salimadamoncrm.com/.../making-cross-domain-ajax-calls-from-crm-form-jscript

    2. Move Rest Calls to server side - salimadamoncrm.com/.../crm-2013-actions-to-get-around-javascript-cross-domain-challenges

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
SA-08121319-0 Profile Picture

SA-08121319-0 4

#1
Calum MacFarlane Profile Picture

Calum MacFarlane 4

#3
Alex Fun Wei Jie Profile Picture

Alex Fun Wei Jie 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans