Search This Blog

Wednesday, October 9, 2019

Enable CORS any URL

By joining your URL with the below it will enable cors.
https://cors-anywhere.herokuapp.com/

  var proxy = 'https://cors-anywhere.herokuapp.com/';

        var URL = ""URL";
        //Your URL
        // alert(URL);
        $.ajax({
            type: 'GET',
            async: "false",
            start_time: new Date().getTime(),
            url: proxy + URL,

});

1 comment:

Note: Only a member of this blog may post a comment.