Skip to content

Commit 991a138

Browse files
author
Jorge
committed
check the url in requests options instead of in the user options
1 parent 86c4d4d commit 991a138

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

jQuery.XDomainRequest.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ if (!jQuery.support.cors && window.XDomainRequest) {
1111
// ajaxTransport exists in jQuery 1.5+
1212
jQuery.ajaxTransport('text html xml json', function(options, userOptions, jqXHR){
1313
// XDomainRequests must be: asynchronous, GET or POST methods, HTTP or HTTPS protocol, and same scheme as calling page
14-
if (options.crossDomain && options.async && getOrPostRegEx.test(options.type) && httpRegEx.test(userOptions.url) && sameSchemeRegEx.test(userOptions.url)) {
14+
if (options.crossDomain && options.async && getOrPostRegEx.test(options.type) && httpRegEx.test(options.url) && sameSchemeRegEx.test(options.url)) {
1515
var xdr = null;
1616
var userType = (userOptions.dataType||'').toLowerCase();
1717
return {

0 commit comments

Comments
 (0)