I am updating a JavaScript file that uses jQuery.support.cors
, which is now deprecated;
What should I use instead?
The application operates in an <iframe>
inside a parent document and uses $.ajax();
to send data to a different url.
jQuery(document).ready(function() {
jQuery.support.cors = true; // This is now deprecated.
}