1
2
3
4
5
6
7
8
9
10
11
12
import { fetch as stdFetch } from "https://esm.town/v/std/fetch?v=5";
import { fetchJSON } from "https://esm.town/v/stevekrouse/fetchJSON?v=44";
import { insecureFetch } from "https://esm.town/v/vladimyr/insecureFetch";
let data = await fetchJSON("https://httpbun.com/get", { fetch: insecureFetch });
console.log(data.origin);
data = await fetchJSON("https://httpbun.com/get", { fetch: stdFetch });
console.log(data.origin);
data = await fetchJSON("https://httpbun.com/get");
console.log(data.origin);
1
Next