KustomerCore.isUrlAllowed()
Checks if a certain URL string is allowed to host chat based on chat settings
First, initialize chatYou must initialize with
KustomerCore.init()before you can execute any additional Core SDK methods
Examples
// Check if a url is allowed
const result = KustomerCore.isUrlAllowed('someurl.com');Syntax
returnValue = KustomerCore.isUrlAllowed(options)| Parameter | Type | Description |
|---|---|---|
| options | Object | Required An object containing the url you want to verify. A breakdown of the |
| returnValue | Object | Required An object that looks like the following:
|
options
options| Property | Type | Description |
|---|---|---|
| url | String | Required A url you want to verify. |
Updated 16 days ago