JQuery obtiene un error de retorno al usar read me later api

I have the following code which hits the texto método de la read it later api:

$(document).ready(function() {
    var request = $.get('https://text.readitlaterlist.com/v2/text?apikey=KEY&url=http://readitlaterlist.com/api/docs');
});

Where KEY is my api key

If I use the same API key with http://web-sniffer.net/ and perform a get it works correctly. Why is my jQuery get returning an error?

preguntado el 27 de agosto de 11 a las 21:08

1 Respuestas

You will not be able to do a GET from the client (with JS) due to XSS browser policies, you will need to access this resource from your server.

Respondido 28 ago 11, 01:08

No es la respuesta que estás buscando? Examinar otras preguntas etiquetadas or haz tu propia pregunta.