// The local openscience server is loopback-only and unauthenticated (its single // security control is a Host-header check on the server). The web app therefore // makes plain fetch/WebSocket calls with no Authorization header. export const openscienceFetch: typeof fetch = Object.assign( (input: Parameters[0], init?: Parameters[1]) => fetch(input, init), { preconnect: typeof fetch.preconnect === "function" ? fetch.preconnect.bind(fetch) : () => undefined }, )