跳到主要内容

Variables

Exported constants: the default frame configuration, the iframe name prefix, the CSP validation endpoint and the error messages the SDK shows.

Overview​

The following constants are available:

ConstantDescription
connectErrorTextError message passed to TFrameEvents.onAppError when a method is called before the postMessage channel is established (i.e. before the first valid message from the iframe).
CSPApiUrlThe ONLYOFFICE Apps CSP validation endpoint.
cspErrorTextError message shown when the host domain is not in the ONLYOFFICE Apps CSP allowlist.
defaultConfigThe default configuration applied to every frame before user overrides.
FRAME_NAMEThe prefix for iframe name attribute.
TOKEN_REFRESH_LEAD_MS—