Created
November 8, 2016 08:35
-
-
Save yogasukma/5951f05f5495c494cfbbe97a8ada380b to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$.ajaxPrefilter( function (options) { | |
if (options.crossDomain && jQuery.support.cors) { | |
var http = (window.location.protocol === 'http:' ? 'http:' : 'https:'); | |
options.url = http + '//cors-anywhere.herokuapp.com/' + options.url; | |
//options.url = "http://cors.corsproxy.io/url=" + options.url; | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment