Expand description
The origin of an address, asked through one guard.
A blob: address carries another address (blob:https://example.com/<id>), and its origin is the
carried address’s. An address that carries another blob: address has no origin here: it is
refused, so the answer is “no origin”, and every caller treats that as “not allowed”. Every place
that decides something from an address’s origin asks through checked_origin (or
origin_string), never through Url::origin directly.
Functions§
- checked_
origin url’s origin, orNonefor an address this guard refuses (a nestedblob:address).- is_
nested_ blob - Whether
urlis ablob:address whose carried address is itself ablob:address. - origin_
string checked_originasscheme://host[:port](nullfor an opaque origin), orNonefor a refused address.