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:
| Constant | Description |
|---|---|
connectErrorText | Error 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). |
CSPApiUrl | The ONLYOFFICE Apps CSP validation endpoint. |
cspErrorText | Error message shown when the host domain is not in the ONLYOFFICE Apps CSP allowlist. |
defaultConfig | The default configuration applied to every frame before user overrides. |
FRAME_NAME | The prefix for iframe name attribute. |
TOKEN_REFRESH_LEAD_MS | — |