How do you disable cross origin constraints to run on localhost?

0
<!doctype html>
<html lang="pt-br">

<head>
    <meta charset="utf-8">
    <title>Teste - LOTECE</title>
</head>

<body>
    <div class="resultado"></div>

    <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.1.1/jquery.min.js"></script><scripttype="text/javascript">
        $(function() {
            $('.resultado').load('http://www.lotece.com.br/v2/ .dataResultado');
        });
    </script>
</body>

</html>

I have the above code, but the problem with not listing the results has to do with cross-origin. I am a beginner in many things and I do not know how to solve this problem. At first it was for the result to be this, when I accessed the localhost / Teste.html.

I would appreciate it if you could help me solve this problem. [I do not even know where to start, rs]

    
asked by anonymous 13.01.2017 / 17:15

1 answer

0

The solution was this. But testing another day simply does not show any more.

<!doctype html>

         Cris - LOTECE

    

<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.1.1/jquery.min.js"></script><scripttype="text/javascript">
    $(function(){
        $('.resultado').load('https://crossorigin.me/http://www.lotece.com.br/v2/ .dataResultado');
    });
</script>

The result that was generated and the next day was no longer in the image.

    
02.02.2017 / 03:19