In order to embed your models, you need to allow external domains to embed their models. Embedding will be blocked from any other location not specified in the model Edit page.
Embedding is a feature only available for paying users.
You will find the Domain list in the Edit page of the model:
Add only full domains to the list (that is the hostname part of your URL, including the port number if you are using a non-standard one, i.e. everything after https://). Note that you can specify local hostnames and ports in order to set up a local development environment (e.g. 127.0.0.1:8080). Be aware that the precise hostname is being checked, i.e. subdomains need to be added individually. As an example allowing shapediver.com for embedding does not automatically allow www.shapediver.com.
Whitelisting domains for Wix and similar services
Getting the right domain from services like Wix is not as straight forward as just copy pasting the website domain. One has to dive deeper and all necessary steps are explained below:
- Open your Wix page with embedded ShapeDiver model, open the network tab in the browser’s developer tools, filter “ticket” and select the error (red) network request. Look for “x-shapediver-origin” in the header and copy only the domain part without the “https://” bit.
- In ShapeDiver, go to your dashboard, domains tab and enter the domain. https://app.shapediver.com/me#domains
- Then open your model in the edit mode, allow global domains and apply settings.