I need to parse data from url, but it's doesn't work ;(
script.js:
      $.get('http://www.cbu.uz/section/rates/widget/xml/usd', function(data,status){       var response = $(data).find('response');       var rate = response.find('rate').text();       $('.rates b').text(rate);          console.log(data)      });      This is what i see in browser console:
  XMLHttpRequest cannot load http://www.cbu.uz/section/rates/widget/xml/usd. No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin '****' is therefore not allowed access.      
No comments:
Post a Comment