Skip to content
docs

checkSenderOrigin

checkSenderOrigin(sender, stamped): string | null

Defined in: relay.ts:179

The service worker’s check before it believes a stamped origin: it must equal the origin the browser recorded for the port. Returns the trusted origin or null.

PortSender | undefined

string

string | null