How do I add geo-enabled tweets to my web map?


I’ve built a web map using Leaflet, and I’d like to add geocoded search-based tweets to my map, but I keep encountering an error: “Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource” and wants me to enable CORS. Below is the code I’m using - any thoughts on what I might be doing wrong?


{q : ‘Raleigh’,
geocode : ‘35.79, -78.65, 50mi’,
result_type : ‘recent’,
coordinates: ‘true’,
geo_enabled: ‘true’
function(data) {
alert('page content: ’ + data);