What are the ways to get the JSON array from an external site?

0 like 0 dislike
6 views
Good day!
I have the extension for chrome, which produces uploading JSON array using XMLHttpRequest
Comrades of chromium unhappy that this method is not safe (as I understand):
To have your item reinstated, please make any necessary changes to avoid requesting or executing remotely hosted code (including by referencing remote javascript files or executing code obtained by XHR requests)

The next question
Are there alternative methods to load JSON array using JS?
Because as I understand it $.JSON from JQuery works in the same XMLHttpRequest?
And what other ways I can not find
Do they exist?...
by | 6 views

3 Answers

0 like 0 dislike
by
0 like 0 dislike
JSONP
by
0 like 0 dislike
I would have done through their server, who walked on the source server and the result sent to the client.
In php it can be
<?php\r$homepage = file_get_contents('http://www.example.com/');\recho $homepage;\r?>
by

Related questions

0 like 0 dislike
7 answers
0 like 0 dislike
3 answers
asked Apr 24, 2019 by vanesxl
0 like 0 dislike
1 answer
0 like 0 dislike
3 answers
110,608 questions
257,186 answers
0 comments
28,662 users