export async function callBrowserRequest(url, _opts) {
    const res = await fetch(url, {
        method: _opts?.method ?? "GET",
        headers: { "Content-Type": "application/json" },
        body: _opts?.body ? JSON.stringify(_opts.body) : undefined,
    });
    const body = await res.text();
    return { ok: res.ok, status: res.status, body };
}
