Expand description
HTTPS enforcement, origin comparison and header redaction.
Functionsยง
- is_
localhost - Whether the URL names this machine.
- 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.