KustomerCore.isUrlAllowed()

Checks if a certain URL string is allowed to host chat based on chat settings

👍

First, initialize chat

You 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)
ParameterTypeDescription
optionsObjectRequired

An object containing the url you want to verify. A breakdown of the options object is listed below.
returnValueObjectRequired

An object that looks like the following:

{ allowed: Boolean }

options

PropertyTypeDescription
urlStringRequired

A url you want to verify.