Security
Repp's frames show only on the origins you registered, talk only to your page over a private channel, need no third-party cookies, and are limited per key and per address.
Origins
- Register every origin that shows Repp (
https://app.example.com): https, exact, no paths and no wildcards. Repp's frames sendContent-Security-Policy: frame-ancestorswith exactly those origins, so no other site can frame them. - A test key also allows
http://localhoston any port. - Each frame says hello to one allowed origin - your page's - and never to
*.
Your Content Security Policy
If your page sends a Content Security Policy, let Repp's script and frames in. Nothing else: the frames talk to Repp themselves.
script-src 'self' https://embed.dev.repp.co.il;
frame-src https://embed.dev.repp.co.il;The handshake
- The SDK accepts a hello only from Repp's origin, from its own frame's window, carrying that frame's id; then it hands the frame one end of a
MessageChannel. - Everything after - the
client_secret, sizes, events, open and close - goes over that private channel, never throughwindow.postMessageto anyone listening. - The secret is never in an address, and the token never leaves the frame.
Signed webhooks
Every webhook to your server is signed with your endpoint's own secret, which Repp shows once. Your endpoint is https only. Verify Repp-Signature on the raw body, in constant time, and refuse a signature more than 5 minutes old (see Webhooks).
No third-party cookies
Repp's frame keeps its token in memory and sends it as a bearer token. It sets no cookie, so Safari's tracking prevention and blocked third-party cookies change nothing.
Limits
| Who | Limit |
|---|---|
| Sessions, per secret key | 600 a minute |
| Messenger sessions, per person of a business | 60 a minute |
| Other sessions, per connected business | 60 a minute |
| Calls without a good key, per address | 60 a minute |
| A frame's calls, per session | 120 a minute |
| Frames claiming sessions, per address | 30 a minute |
| All of a frame's calls, per address | 600 a minute |
Over a limit the answer is 429 too_many with Retry-After: 60.