JSFiddle - React, Tailwind, and code Playground
JavaScript
$.ajax({
url:"https://accounts.google.com/o/oauth2/revoke?token=10100101",
dataType: 'jsonp', // Notice! JSONP <-- P (lowercase)
success:function(json){
console.log(arguments);
// do stuff with json (in this case an array)
alert("Success");
},
error:function(){
alert("Error");
},
});