JSONP communication in a Google Chrome extension
问题 I'm writing a Google Chrome extension. I want to use jsonp cross-domain communication with jQuery. Here is the ajax code: $.ajax({ type : 'POST', url : $(this).attr('action'), data : $(this).serialize(), contentType: 'application/json; charset=utf-8', dataType : 'jsonp', success : function() { alert('A'); } }); This calls this URL: http://sgsync.dev.kreatura.hu/api/signup/?callback=jQuery1710883696963544935_1327347078860&nick=&pass=&_=1327347087371 The server answers 200 OK with this data: