Expand description
The checks that keep credentials on the HEY origin, and the redaction that keeps them out of logs.
Functionsยง
- is_
localhost - Whether a URL points at this machine:
localhost, a.localhostname, or a loopback address. - is_
same_ origin - Whether two URLs share a scheme, host and port, with default ports treated as equal to their explicit form.
- redact_
headers - A copy of the headers with credentials replaced, for logging.
- require_
secure_ endpoint - Refuses an endpoint that would carry credentials over plain HTTP, unless it is on this machine.