Skip to main content
function getSecureIframeOrigin(url: string): string;
Extracts the origin from a URL string.

Parameters

ParameterTypeDescription
urlstringThe URL to extract the origin from.

Returns

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