Home > @uniformdev/canvas > isAllowedReferrer

isAllowedReferrer() function

Checks if page is opened from inside Uniform Canvas Editor. So if you open preview in incognito or via copy/paste link, it will return false.

Signature:

Parameters

Parameter

Type

Description

referrer

string | undefined

Returns:

boolean