Hi all,

I get json in the angular environment, but got
the 'Access-Control-Allow-Origin' exception. See the following.
How to solve this issue? Thanks for your advice!

/afancy

%angular
<script type="text/javascript">
 readJson = function (url) {
    $.getJSON(url, function(data){
         console.log(data.body);
    });
 }

readJson('
http://129.241.107.186:4242/api/query/last?timeseries=ctt.traffic.JF&resolve=true'
);
</script>


XMLHttpRequest cannot load
http://129.241.107.186:4242/api/query/last?timeseries=ctt.traffic.JF&resolve=true.
No 'Access-Control-Allow-Origin' header is present on the requested
resource. Origin 'http://localhost:8080' is therefore not allowed access.

Reply via email to