Details
-
Type: extRequest
-
Status: Closed
-
Priority: Major
-
Resolution: Done
-
Fix Version/s: 2021
-
Component/s: FIWARE-TECH-HELP
-
Labels:None
-
Sender Email:
-
HD-Chapter:WebUI
-
HD-Enabler:XML3D
Description
Hi,
I am working on a FIWARE project using the XML3D GE.
I am trying to load an external model using the MODEL tag:
<group style="transform: translate3d(0px,0px,0px)" >
<model src="
http://server1.uv.es/FIWARE/Assets/Models/Axes/Axes.xml#Axes"></model>
</group>
I am not using FILAB yet.
I am using a local WAMP server where I store the .html code that makes use
of the XML3D GE. The external machine (server1.uv.es) is a different
machine with another webserver.
However. It does not work, because of Access-Control restrictions. This is
the Chrome console message that I get:
XMLHttpRequest cannot load
http://server1.uv.es/FIWARE/Assets/Models/Axes/Axes.xml. No
'Access-Control-Allow-Origin' header is present on the requested resource.
I was wondering if I need to add something to the document for that to work.
It works like a charm when you load models without using an external URL.
I just would like to use also external URLs
The funny part is that I load the XML3D from an external URL, and that's OK
for the browser:
<script type="text/javascript" src="
http://www.xml3d.org/xml3d/script/xml3d.js"></script>
I just don't know why an XML model is different...
I am sure it is possible to load external URLs.
I just would like to know how.
Thanks in advance!
_______________________________________________
Fiware-tech-help mailing list
Fiware-tech-help@lists.fi-ware.org
https://lists.fi-ware.org/listinfo/fiware-tech-help
[Created via e-mail received from: Sergio Casas <scasas@robotica.uv.es>]
hi
Thanks for contacting us. I will put you in direct contact with the Ge support.
Regards,
Miguel
El 09/06/2015 a las 11:38, Sergio Casas escribió:
Hi,
I am working on a FIWARE project using the XML3D GE.
I am trying to load an external model using the MODEL tag:
<group style="transform: translate3d(0px,0px,0px)" >
<model src="http://server1.uv.es/FIWARE/Assets/Models/Axes/Axes.xml#Axes"></model>
</group>
I am not using FILAB yet.
I am using a local WAMP server where I store the .html code that makes use of the XML3D GE. The external machine (server1.uv.es<http://server1.uv.es>) is a different machine with another webserver.
However. It does not work, because of Access-Control restrictions. This is the Chrome console message that I get:
XMLHttpRequest cannot load http://server1.uv.es/FIWARE/Assets/Models/Axes/Axes.xml. No 'Access-Control-Allow-Origin' header is present on the requested resource.
I was wondering if I need to add something to the document for that to work.
It works like a charm when you load models without using an external URL.
I just would like to use also external URLs
The funny part is that I load the XML3D from an external URL, and that's OK for the browser:
<script type="text/javascript" src="http://www.xml3d.org/xml3d/script/xml3d.js"></script>
I just don't know why an XML model is different...
I am sure it is possible to load external URLs.
I just would like to know how.
Thanks in advance!