Cors issue

the sample provided here works

but when change to my public model ticket it shows cors error even “localhost:8080” is provided

Did you allow this domain from the ShapeDiver app ?
There are both global and per model settings.

Here are my global domains

Yes I did but no chance, how that sample provided on API doc works everywhere?

You also need to add the global domains for model you wish to embed in the model edit page.