I am using heroku cors any where api,it sucessfully cors to some website but for others not

here is my heroku code

 $.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;
        }
      });

      $.get(
          'https://www.floretmedia.com/''',    // <<------  for these website iam able to fetch but for these (http://www.justdial.com") iam not
          function (response) {

           res = response;
           myfun();


      });

for http://www.floretmedia.com iam able to do cors but for http://www.justdial.com iam not able to do
please help me.
whenever id do it says 403 error request is forbidden.

my full code is below

<!DOCTYPE html>

<html lang="en">
<head>
  <meta charset="utf-8">

  <title>The HTML5 Herald</title>
  <meta name="description" content="The HTML5 Herald">
  <meta name="author" content="SitePoint">

  <!--[if lt IE 9]>
    <script src="https://cdnjs.cloudflare.com/ajax/libs/html5shiv/3.7.3/html5shiv.js"></script>
  <![endif]-->
</head>

<body>
  <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.1.0/jquery.min.js"></script>

  <script type="text/javascript">
$(document).ready(function(){
          
      $.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;
        }
      });

      $.get(
          'http://www.justdial.com/Bangalore/Internet-Website-Designers/ct-1000016428',
          function (response) {

           res = response;
           myfun(res);


      });

  });
    
</script>
</body>
</html>

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.