Details
-
Type: extRequest
-
Status: Closed
-
Priority: Major
-
Resolution: Done
-
Fix Version/s: Sprint 4.1.2
-
Component/s: FIWARE-TECH-HELP
-
Labels:None
-
HD-Chapter:WebUI
-
HD-Enabler:XML3D
Description
Description:
When we git clone the examples repository indicated above and run locally
the page ‘suzanne.html’, the model isn’t loaded and we receive the error
"Could not load external document
'file:/C:/Users/Alejandro/Desktop/TaskForce/3D-UI-XML3D/xml3d-examples/examples/suzanne/./suzanne.json':
0 - ".
This happens with any example we try to test locally. The expected output
can be seen in the image XML3D_doesn’t_load_json_resources_1.png, as it is
ran from the online demo page. The error can be seen in the image
XML3D_doesn’t_load_json_resources_2.png.
Web Browser: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:33.0) Gecko/20100101
Firefox/33.0
GitHub repository: https://github.com/xml3d/xml3d-examples
Online Demo:
http://xml3d.github.io/xml3d-examples/examples/suzanne/suzanne.html
_______________________________________________
Fiware-tech-help mailing list
Fiware-tech-help@lists.fi-ware.org
https://lists.fi-ware.org/listinfo/fiware-tech-help
Hi,
This is an expected behaviour of XML3D because of the CORS (Cross-Origin
Ressource Sharing) handling in browsers. The browser refuses to access
other local files referenced from a local HTML page because of security
reasons.
This can only be dealt with by going through a Web browser, where the
browser adds the necessary HTML CORS-headers (which impossible with
local files).
Just to clear: The installation manual never suggests to locally copy
and run the examples. And this behaviour is documented for XML3D.
But we will check again and may make sure this more prominently visible
in the installation manual to avoid similar user errors in the future.
BTW, this still is ticket
HELP-1003right now.Best,
Philipp
–
-------------------------------------------------------------------------
Deutsches Forschungszentrum für Künstliche Intelligenz (DFKI) GmbH
Trippstadter Strasse 122, D-67663 Kaiserslautern
Geschäftsführung:
Prof. Dr. Dr. h.c. mult. Wolfgang Wahlster (Vorsitzender)
Dr. Walter Olthoff
Vorsitzender des Aufsichtsrats:
Prof. Dr. h.c. Hans A. Aukes
Sitz der Gesellschaft: Kaiserslautern (HRB 2313)
USt-Id.Nr.: DE 148646973, Steuernummer: 19/673/0060/3
---------------------------------------------------------------------------
_______________________________________________
Fiware-tech-help mailing list
Fiware-tech-help@lists.fi-ware.org
https://lists.fi-ware.org/listinfo/fiware-tech-help