Y
Hacker News
new
|
ask
|
show
|
jobs
by
Extigy
868 days ago
Since this is using fetch/XHR under the hood, I guess requests from the browser are restricted only to same-origin URLs or servers responding with permissive CORS headers?
1 comments
SethMLarson
868 days ago
Correct! The examples we used were making requests to httpbin.org, but I also was able to query GitHub's API :)
`data = urllib3.request("GET", "
https://api.github.com").json
()`
link
`data = urllib3.request("GET", "https://api.github.com").json()`