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

ParameterTypeDescription
referrerstring | undefined

Returns:

boolean