javascript - Can get information (.get) -
this question has answer here:
- jquery ajax cross domain 13 answers
- loading cross-domain endpoint jquery ajax 8 answers
i try fetch information public website area. let's want product name , price of only. when try information site giving me error:
no 'access-control-allow-origin' header present on requested resource. origin
'http://demo.com'therefore not allowed access.
the script use is:
$(document).ready(function() { $.get("http://www.ebay.com", function(data) { console.log(data) }); });
Comments
Post a Comment