KarthikaBaskar / jsc3d

Automatically exported from code.google.com/p/jsc3d
0 stars 0 forks source link

Remote URL in setParameter? #46

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Dear,

I'd like to show a .stl file from the remote URL. I've tried to type the remote 
url in "viewer.setParameter('SceneUrl', remote_URL)", but it seems not work.

Is jsc3d workable in this situation? Thanks a lot

Original issue reported on code.google.com by Larry.Lo...@gmail.com on 6 Nov 2013 at 8:43

GoogleCodeExporter commented 9 years ago
Hi, Larry:

Jsc3d would work in that case if both the browser and the server side provide 
support for Cross-origin resource sharing (CORS, see 
http://en.wikipedia.org/wiki/Cross-origin_resource_sharing) mechanism. This 
includes:

1) Your browser where jsc3d is running should already implement CORS. As CORS 
is a relatively new feature, some old browsers may not support it well;

2) The remote server side where the model files are located at should be 
configured correctly to explicitly enable cross-domain resource sharing.

For technical details and how to achieve this, please refer to this document: 
http://enable-cors.org/index.html.

Original comment by Humu2...@gmail.com on 7 Nov 2013 at 3:51