In a hurry?
Copy the Code version of your booking iFrame from Settings → Appointments → URLs & Embeds in Rehab Guru.
Add an Embed → HTML → Code element in Wix (not Embed a site).
Publish the Wix page.
Note the xReferrer domain in the “Invalid domain provided” message (it will look like
your-site-name-com.filesusr.com
).Add that domain to Allowed domain to embed an Appointment form in Rehab Guru.
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
Go to Settings → Appointments → URLs & Embeds.
Enter your domain name and click save.
Click Copy next to Embed Appointment Form code (the block that starts with
<script>
).
2. Add an HTML Embed in Wix
In the Wix editor choose Add → Embed Code → Embed HTML.
Select Code.
Paste the code you copied from Rehab Guru.
Resize the grey placeholder so the booking form will have enough space.
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
Back in Settings → Appointments → URLs & Embeds, paste the wrapper domain into Allowed domain to embed an Appointment form.
Click Update settings.
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
Return to your live Wix page and hard-refresh (⌘/Ctrl + Shift + R).
The booking form should now load correctly.
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 |
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.