开发者

JQuery get returning error when using read me later api

开发者 https://www.devze.com 2023-03-31 10:15 出处:网络
I have the following code which hits the text method of the read it later api: $(document).ready(function() {

I have the following code which hits the text method of the 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开发者_如何学Go key with http://web-sniffer.net/ and perform a get it works correctly. Why is my jQuery get returning an error?


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.

0

精彩评论

暂无评论...
验证码 换一张
取 消