Skip to main content

Embedding the Booking Portal into a WIX Website

In this article we explain the differences between embedding the booking iframe into a standard website vs the WIX platform.

Simon Taylor avatar
Written by Simon Taylor
Updated over a week ago

In a hurry?

  1. Copy the Code version of your booking iFrame from Settings → Appointments → URLs & Embeds in Rehab Guru.

  2. Add an Embed → HTML → Code element in Wix (not Embed a site).

  3. Publish the Wix page.

  4. Note the xReferrer domain in the “Invalid domain provided” message (it will look like your-site-name-com.filesusr.com).

  5. Add that domain to Allowed domain to embed an Appointment form in Rehab Guru.

  6. Save, refresh, done!

Why Wix behaves differently

Unlike ordinary websites, Wix wraps every custom embed in its own, second-layer iFrame that lives on a temporary domain (*.filesusr.com). This wrapper is invisible to you, but the Rehab Guru iFrame checks the origin of the page that loads it. Because the wrapper’s domain is not the same as your public site (nor the editor.wix.com preview), Rehab Guru quite correctly refuses to load and shows the “Invalid domain provided” message.

Two ways to embed, and why we recommend Code

Wix option

What it does

Why it often fails

Website address

Points the element at a full URL.

Wix still wraps that URL in its own iFrame, so the origin check fails unless you pre-emptively know the wrapper domain.

Code (recommended)

Lets you paste the script + iFrame snippet that Rehab Guru provides.

Gives you a quick error read-out (with the wrapper domain) the first time you publish, so you can simply copy-and-paste that domain into Rehab Guru and re-publish.

Step-by-step guide

1. Copy your embed from Rehab Guru

  1. Go to Settings → Appointments → URLs & Embeds.

  2. Enter your domain name and click save.

  3. Click Copy next to Embed Appointment Form code (the block that starts with <script>).

2. Add an HTML Embed in Wix

  1. In the Wix editor choose Add → Embed Code → Embed HTML.

  2. Select Code.

  3. Paste the code you copied from Rehab Guru.

  4. Resize the grey placeholder so the booking form will have enough space.

  5. Publish the site (preview isn’t sufficient).

3. Identify the wrapper domain

On the published page you will see a message like:

Invalid domain provided [info: origin: bookings.rehabguru.com, domain: https://your-site.wixsite.com, xbr: your-site-com.filesusr.com https:// xReferrer: your-site-com.filesusr.com]

Copy only the bold part of the xbr (e.g. https://your-site-com.filesusr.com).

Tip: If you are still on a free Wix plan, you may also need to add
your-site.wixsite.com (the free Wix sub-domain) to your allow-list.

4. Allow the wrapper domain in Rehab Guru

  1. Back in Settings → Appointments → URLs & Embeds, paste the wrapper domain into Allowed domain to embed an Appointment form.

  2. Click Update settings.

  3. IMPORTANT - now you need to copy the new embed script and update the code in WIX. This ensures that the embed code presents the correct information to the Rehab Guru server when requesting permission to load the portal.

5. Test and tidy up

  1. Return to your live Wix page and hard-refresh (⌘/Ctrl + Shift + R).

  2. The booking form should now load correctly.

  3. Check mobile view in Wix to ensure the height is sufficient; adjust the iFrame height in the code if needed (e.g. height="800").

Frequently asked questions

Question

Answer

Why does it still fail inside the Wix editor?

The editor runs on editor.wix.com, which is not the same origin as your live site. Embed security rules therefore block it. Always test on the published site.

Can I circumvent the origin check?

No. The check protects your booking portal from being framed on unauthorised sites. Simply add the correct domains in Rehab Guru.


Troubleshooting checklist

  • iFrame height is tall enough (no internal scroll-bars).

  • All relevant domains are whitelisted in Rehab Guru.

  • You Published the Wix page after making changes.

  • Browser cache cleared / hard refresh performed.

If you still see the error after completing all steps, copy the full error text and contact Rehab Guru support – we’ll be happy to help.

Did this answer your question?