Security and privacy
Built to sit safely on other people's websites
A widget is a separate page inside a frame on your site. It cannot read your page, and your page cannot read it. Here is what that means in practice.
-
You decide who can embed
Each hotel has a list of websites allowed to embed its widgets. It becomes the page's Content-Security-Policy frame-ancestors header, so a website that is not on the list cannot frame them.
- Leave the list empty to allow any website, which suits a demo.
- Tested from a page on an unlisted address: the frame is refused.
-
Messages with a handshake
The page and the widget talk with postMessage. The widget greets, the loader answers, and from then on the widget only sends to the address that answered.
- The loader only accepts messages from the platform's address and from frames it created.
- Messages carry nothing beyond what the guest chose.
-
No cookies, no tracking
The widgets keep nothing on a guest's device and ask nothing of other sites.
- No cookies and no local storage.
- No requests to other sites: fonts and images are served with the widget.
- Events go to your page, and you decide what to do with them.
-
Clean inputs
Every option in an address is checked before it is used. Colours must be hex, choices must come from a list, numbers are limited and text is made safe.
- Data blocks are escaped for the page they sit in.
- A booking engine address must start with http or https and is filled with encoded values.
-
Guest details stay put
When the platform takes a booking, the guest's details are saved in the reservation and used for its emails, and nowhere else. Card numbers never reach it: the guest pays on Stripe's page.
- With a booking engine, your own page or the demo checkout, the widgets store nothing and send nothing.
- Reservations are not published anywhere: there is no public list and no public data route for them.
- Add privacy information to your own site that names who holds the booking.
-
Money is handled carefully
Prices, deposits and availability are worked out again on the server for every booking, so a changed page cannot change what is charged.
- Stripe's messages are checked against their signature and a five-minute window before they are believed, and a repeated message changes nothing.
- The room is held while the guest pays, so two guests cannot take the last one, and it is released if the payment never comes.
- Each hotel uses its own Stripe account: deposits are paid to it, not through the platform.
- Secret keys live in settings or wp-config.php and are never part of what a widget receives.
-
Accessible by default
Real buttons, links and form fields with names; a calendar you can move through with the keyboard; focus that returns after the overlay or the photo viewer closes.
- Reduced motion, forced colours and dark mode are respected.
- Built with WCAG 2.2 AA in mind: test it with your own palette and a screen reader.
-
Light and predictable
A loader under 5 KB gzipped, and widgets that arrive with their data. Pages are cached for a minute and the loader for an hour.
- Frames below the fold load when they are needed.
- Changing dates and guests needs no request.
Something we have not covered?
The questions page answers the rest, and the guide shows how to set the websites allowed to embed and how to take payments.