isDashboardPluginUrlValid()
Home > @gooddata/sdk-backend-spi > ISecuritySettingsService > isDashboardPluginUrlValid
ISecuritySettingsService.isDashboardPluginUrlValid() method
Validate plugin URL against list of allowed hosting locations.
Signature:
isDashboardPluginUrlValid(url: string, workspace: string): Promise<boolean>;
Parameters
Parameter |
Type |
Description |
---|---|---|
url |
string |
plugin content URL |
workspace |
string |
workspace in context of which the validation is done |
Returns:
Promise<boolean>
Remarks
Dashboard plugins MUST be loaded only from allowed locations. If the plugin is hosted elsewhere, it MUST NOT be loaded.