I am using API to fetch json response
$(document).ready(function () {
var url = "https://translate.googleapis.com/translate_a/single?client=gtx&sl=hi&tl=en&dt=t&q=???";
var zDdata = {
};
var displayResults = function (data) {
console.log(data);
};
$.getJSON(url, zDdata, displayResults);
});
But Its give error like that
XMLHttpRequest cannot load https://translate.googleapis.com/translate_a/single?client=gtx&sl=hi&tl=en&dt=t&q=%E0%A4%A0%E0%A5%80%E0%A4%95. No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://www.personalspace.me' is therefore not allowed access.
And when i am using this one using jsonp
var api = "https://translate.goog ...
Go to the complete details ...