isUrlValid()
Home > @gooddata/sdk-backend-spi > ISecuritySettingsService > isUrlValid
ISecuritySettingsService.isUrlValid() method
Validate URL against backend list of allowed URLs.
Signature:
isUrlValid(url: string, context: ValidationContext): Promise<boolean>;
Parameters
Parameter | Type | Description |
---|---|---|
url | string | URL for validation. |
context | ValidationContext | context in which the URL must be valid. |
Returns:
Promise<boolean>
promise with boolean: true when validated URL is allowed as external host, false if it is not.