Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion jQuery.XDomainRequest.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ if (!jQuery.support.cors && jQuery.ajaxTransport && window.XDomainRequest) {
var xmlRegEx = /\/xml/i;

// ajaxTransport exists in jQuery 1.5+
jQuery.ajaxTransport('text html xml json', function(options, userOptions, jqXHR){
jQuery.ajaxTransport('* text html xml json', function(options, userOptions, jqXHR){
// XDomainRequests must be: asynchronous, GET or POST methods, HTTP or HTTPS protocol, and same scheme as calling page
if (options.crossDomain && options.async && getOrPostRegEx.test(options.type) && httpRegEx.test(options.url) && sameSchemeRegEx.test(options.url)) {
var xdr = null;
Expand Down