Table of Contents

ITMSFNCCustomWebBrowserVirtualHosting.SetVirtualHostNameToFolderMapping Method

Maps a virtual host name to a local folder path with the specified resource access kind.

API unit family: TMSFNCWebBrowser Declaring type: ITMSFNCCustomWebBrowserVirtualHosting

Syntax

procedure SetVirtualHostNameToFolderMapping(AHostName, AFolderPath: string; AAccessKind: TTMSFNCWebBrowserHostResourceAccessKind);

Parameters

Name Description
AHostName Virtual host name to register, for example local.example.
AFolderPath Absolute path of the local folder to serve under the virtual host.
AAccessKind Controls which origins are allowed to access the mapped resources.