Skip to main content
Extracts the origin from a URL string.

Parameters

Returns

string The origin string, or empty string if parsing fails.