serializeOrigin

Serializes an authority-based origin string as defined in https://html.spec.whatwg.org/multipage/browsers.html#ascii-serialisation-of-an-origin. Opaque origins, such as Android application origins, cannot be serialized this way.