Extract the origin from a URL.
The URL string.
The origin, "null" for opaque origins (file:, data:, blob:), or null on parse failure.
Extract the origin from a URL.