OriginValidator: ((origin: string) => boolean) | "same-origin" | "none"

Specify behavior for origin validation.

Value Description
"same-origin" The origin of received message must be the same of hosted window, instead exception will throw.
(origin: string) => boolean The callback to verify origin to be expected validation. When callback return false value, message will rejected and exception will throw.
"none" No origin validation for post messages.