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)

Parameter

Type

Description

options

Object

Required

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

returnValue

Object

Required

An object that looks like the following:

{ allowed: Boolean }

options

Property

Type

Description

url

String

Required

A url you want to verify.


Did this page help you?