The Embed API access is controlled by the client domain where the embed is implemented. When a company sign up to use Fibbl content the client top domain is used as authorisation to access the models. Developers usually work on a local environment before they publish the code. In this state authorisation is made by a token secret that is added to the script tag
The first attribute to add is ‘data-fibbl-config’ to make the embed aware of witch script tag is used for authorisation. Then add the ‘data-token’ and the ‘data-secret’. The values can be found in the Fibbl platform – under the Tech tab in your company settings. The token and secret should never be published in a production environment.
<script
src="https://cdn.fibbl.com/fibbl-model-viewer.js"
type="module"
data-fibbl-config
data-token="token_given_by_Fibbl"
data-secret="secret_given_by_Fibbl">
</script>
An extended version of this documentation can be found at https://docs.fibbl.com
Did we miss something?
Not to worry! Just email our support team at help@fibbl.com. ✌️