5 ms·
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 CO
by Extigy 3y 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?
- SethMLarson 3y agoCorrect! 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 https://api.github.com").json()`