GetWebOriginURL (open)
Get request's origin URL
Syntax
LOADLIB "mod::system/lib/webserver.whlib";
STRING FUNCTION GetWebOriginURL(STRING path)Parameters
STRING pathLocal path as specified by app, may be a full url, start with slash, or be empty
Return value
STRINGThe origin URL (never ends with a slash, eg https://beta.webhare.net)
Description
Determine the full origin URL based on the hostname from Origin and Referer header if available, and on requesturl otherwise