Hi,
I am new at coding html and java. I have used the code here:
ShapeDiver 3D Viewer Index
to test the ticket of my model.
If my model is public I can access to it without a problem in either copeden.io or jsfiddle.net , however it does not work when I change the model to private. Is there any simple thing I am missing?
Thanks in advace,
Tono
pavol
(Pavol)
April 27, 2021, 1:56pm
2
You need to add the global domains in the model settings, see these posts for details:
You need to add the domain to the global domains list at https://app.shapediver.com/me#domains
[image]
Then enable global domains in the model edit page. You can also keep the model private if you wish and it will only show embedded on your web site.
[image]
More in this documentation page:
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://), more on this documentation page . The input box for the global domains should look like this:
[domains]
Update: The JSFiddle iframes use a different URL and you need to whitelist fiddle.jshell.net .
Thanks for replying Pavol,
I saw those posts before and I manage to use the model in both domains when is public, however when I click the private model it does not work.
This is the code
I have a trial PRO account, not sure if it could be this…
Thanks in advance,
Tono
pavol
(Pavol)
April 27, 2021, 2:32pm
4
Make sure you check the right box and you enter correct global domains for embedding.
working, thanks you very much