testing/test_origin.ts view source
(extra?: Record<string, string> | undefined): Record<string, string> import {create_test_request_headers} from '@fuzdev/fuz_app/testing/test_origin.js'; The headers every in-process test request starts from: host: localhost
and TEST_ORIGIN, which the loopback allow list admits.
extra?
headers added after, replacing either of the defaults
Record<string, string>returns
Record<string, string>
a fresh object