I need to request a twitter search with jquery using twitter api. After read documentation I write this code:
$.getJSON("http://search.twitter.com/search.json?callback=myFunction&q=stackoverflow");
function myFunction(r) {
console.log(r);
}
search.json Failed to load resource> When the page is executed, Google Chrome show this error on Console:
XMLHttpRequest cannot load http://search.twitter.com/search.json?callback=myFunction&q=stackoverflow. Origin http://localhost/twitter is not allowed by Access-Control-Allow-Origin. search.json Failed to load resource
what is the problem?