I want to turn crossDomain parameter off when I generate ajax request from http://myhost.mydomain/ to https://myhost.mydomain/ (jQuery determines the request as cross-domain one because the protocol is different between these two urls).
For the purpose I wrote as below.
jQuery, however, determines the request as cross-domain automatically, because jquery_ujs.js sets crossDomain parameter null in line 105 (version 1.0.17)
crossDomain = element.data('cross-domain') || null,
I guess the line should be
crossDomain = element.data('cross-domain') === undefined ? null : element.data('cross-domain'),
Thanks for the report. Fixed.