- Developer home
- Embed editors
- Security
Security
This page is not yet translated into your language; it is shown in English.
Security
- Framing: the editor page sends Content-Security-Policy frame-ancestors with exactly your app's origins; no other site can frame it (clickjacking).
- Tokens: your secret key never leaves your server. Session tokens are handed over by postMessage to the editor's origin only and sent in a request body: never in a URL, so never in a log or a Referer. Each starts one session once, and expires.
- Sessions: the editor keeps its session secret in memory and sends it as a header. What the browser loads by itself inside the editor (pictures in a document) carries a read-only link signed for the session that lasts minutes, never the secret. A session reaches its own document and nothing else of MR Office; view sessions cannot write.
- Isolation: each app's documents live in a workspace of their own, separate from every other app and from your own MR Office account.
- Messages: embed.js and the editor check the origin and source of every message; nothing is ever posted to "*".
- Fetching your files: https only, public addresses only (checked after DNS and pinned for the connection), redirects re-checked, sizes capped.
- Callbacks: HMAC-SHA256 signed with a timestamp, retried under one idempotency key; your callback URL must be public https.
- Revocation: switch an app off, end its sessions, or rotate a key at any time in the developer console; it takes effect within seconds.
- Browsers: the editor works in every current browser, including where third-party cookies are blocked (Safari, Firefox, Chrome with third-party cookies off): it needs no cookie. A partitioned, HttpOnly cookie keyed to your site (CHIPS) is set as well, for reading only, where the browser accepts it.