Questions tagged [xdomainrequest]

The XDomainRequest object is implemented in Internet Explorer 8–10 and can be used to do cross-domain asynchronous requests and it also has support for streaming the content.

The XDomainRequest object was implemented in IE8 and can be used to do cross-domain asynchronous requests. It also has support for streaming the content.

Eric Law has explained its use in an IEInternals blog post: COMET Streaming in Internet Explorer

122 questions
2
votes
2 answers

Posting Cross Domain AJAX/XDomainRequest to Web Service

I have spend a LOT of time reading through all the various posts here and on various other websites, and have the following code: function post_cors(vars) { // cross domain AJAX posting - needs work to function in IE var…
Jamie Hartnoll
  • 7,231
  • 13
  • 58
  • 97
2
votes
1 answer

Xdomain request work around

I have a javascript file that is supposed to be loaded on different client websites as a service. There are some AJAX post requests in this file which calls the backend on my server. It usually works fine in chrome and firefox but IE always shows…
Cerberus
  • 21
  • 1
2
votes
1 answer

XDomainRequest open("get", url) gives Access Denied error in IE

I'm using following code in one of my JavaScript file. xhr = new XMLHttpRequest(); xhr.open("GET", dest, true); // dest is the URL xhr.onreadystatechange = checkData; xhr.send(null); But when I run the script in IE,m it is giving me following…
2
votes
1 answer

Can XDomainRequest be used to load and draw images?

I am loading in images from a server on a different domain. The images are CORS-enabled (they have this header: Access-Control-Allow-Origin: *). In modern browsers, using image.crossOrigin = '', I am able to safely draw them to a . I would…
Simon Cave
  • 3,971
  • 4
  • 24
  • 28
2
votes
2 answers

IE cross domain ajax invocation XDomainRequest error

I have to use the following code to logout from a page in an Iframe //The javascript code is in a page in my-domain //it tries to logout from the page in other-domain $(window).unload(function() { if ($.browser.msie && window.XDomainRequest) //…
wlin
  • 75
  • 1
  • 3
  • 10
2
votes
1 answer

IE9 SCRIPT87: Invalid argument on XDomainRequest

I'm testing my app on Internet Explorer 9, the app works fine on Chrome, Firefox, Opera and Safari, but in IE.... Well, in this code: this.xhr.open("PUT",url,true); The IE says 'SCRIPT87: Invalid argument.' i attach an image: The xhr element is a…
Kalamarico
  • 5,466
  • 22
  • 53
  • 70
2
votes
1 answer

How to POST a XDomainRequest call to a WCF service method with parameters

I think I've read every StackOverflow post on XDomainRequest and another few dozen on AJAX and WCF, but I'm still having trouble getting an XDomainRequest AJAX call to work. I've implemented CORS ("Access-Control-Allow-Origin") on my WCF service…
MDK1969
  • 61
  • 1
  • 7
2
votes
0 answers

XDomainRequest open not working on clients IE8 machine

Can anyone tell me why XDomainRequest is not working on my clients login computers? It works on my IE9 and my servers. It works on their servers but will not work on their IE8 logins function…
1
vote
1 answer

XDomainRequest for cross-domain ajax gives unintelligible error - emptry error

I have the following ajax call that is supposed to call a page on different domain: if ($.browser.msie && window.XDomainRequest) { // Use Microsoft XDR var xdr = new XDomainRequest(); xdr.open("post",…
oneiros
  • 3,527
  • 12
  • 44
  • 71
1
vote
2 answers

Permission denied error when invoking cross domain AJAX using XDomainRequest

I have created a php page that makes use of Google Javascript APIs. I am trying to use Ajax to populate the info windows of the markers dynamically, but get a permission denied error on the xdr.open line. I have checked the other posts relating to…
A11
  • 11
  • 1
  • 2
1
vote
0 answers

IE - Access denied to angular.js file because of XMLHttpRequest

I have problem with Internet Explorer. I made a simple application in AngularJS, in Mozilla everything works file, but in IE I have problem like this: Error: Access is denied. at Anonymous function…
eveillaur
  • 11
  • 3
1
vote
0 answers

Rails 5 API: Get params out of response.body without Content-Type Header set

Unfortunately our API has to support requests made by XDomainRequest (IE9) which does not set the request's Content-Type header. Now Rails (5 API only) seems not to parse any params out of the request body. I also tried submitting…
metafoo
  • 95
  • 1
  • 8
1
vote
0 answers

XDomainRequest unspecified error in ie8

I am trying to make a http GET request in IE8. This works fine in all other browsers and in IE8 when using jQuery but not the native method. I also tried another endpoint I have but no luck. All it returns is 'Unspecified error.' in the console…
user1572796
  • 1,057
  • 2
  • 21
  • 46
1
vote
1 answer

Internet Explorer 9- X Domain Request only works in compatability mode

We discovered our ajax call to a JSON resouce wasn't working in IE9, and that we had to use the X Domain Request API. But my call is simply not calling the "onload" function unless the browser is set to compatibility mode- which is not an…
1
vote
0 answers

xdomain implementation for angular project

I'm developing an angular application that executes ajax calls to web services to get/post data. The issue is that my app runs under a secure protocol (https), but the services are exposed using a non secure protocol (http) so everytime it tries to…
Gus Bend
  • 94
  • 8
1 2 3
8 9