Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics CRM (Archived)

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

Posted on by 95

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

  • Verified answer
    a33ik Profile Picture
    a33ik 84,323 Most Valuable Professional on at
    RE: Getting cross browser issue while calling third party REST URL in MS dynamics CRM 2016 in IE11

    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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,253 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,188 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans