MCPcopy Create free account
hub / github.com/UsefulSoftwareCo/executor / req

Function req

apps/cloud/src/auth/request-origin.test.ts:5–6  ·  view source on GitHub ↗
(url: string, headers: Record<string, string> = {})

Source from the content-addressed store, hash-verified

3import { browserOriginFromRequest } from "./request-origin";
4
5const req = (url: string, headers: Record<string, string> = {}): Request =>
6 new Request(url, { headers });
7
8describe("browserOriginFromRequest", () => {
9 it("uses the request URL origin when no proxy headers are present (Cloudflare)", () => {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected