<div dir="ltr">AFAIK, x3dom also requires running a local web server to access local files and suggests to uses the http server which comes with python:<br><br><a href="http://doc.x3dom.org/gettingStarted/pythonSimpleHTTP/index.html">http://doc.x3dom.org/gettingStarted/pythonSimpleHTTP/index.html</a><br><div><br></div><div>Running a http server (but web browser ?) may be considered a security hole if outgoing traffic somehow was not considered in security design. A local http server would still work even if the machine is physically disconnected from the network for maximum security.<br></div><div><br></div><div>It may be possible to package a small local web server, webkit with js engine, and javascript app (cobweb) into a standalone application with a custom UI which can open local files. But it would be a development effort and the resulting application may be a larger security risk than a standard web browser although it would not look like one.<br><br></div><div>-Andreas<br></div><div><br><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Message: 4<br>
Date: Wed, 13 Apr 2016 10:57:34 +0200<br>
From: Holger Seelig <<a href="mailto:holger.seelig@yahoo.de">holger.seelig@yahoo.de</a>><br>
To: X3D Graphics public mailing list <<a href="mailto:x3d-public@web3d.org">x3d-public@web3d.org</a>><br>
Subject: [x3d-public] COBWEB v1.24 Firefox OK, other browsers have<br>
        cross-origin scripting errors<br>
Message-ID: <<a href="mailto:570E09FE.2070509@yahoo.de">570E09FE.2070509@yahoo.de</a>><br>
Content-Type: text/plain; charset=utf-8; format=flowed<br>
<br>
Redirected:<br>
<br>
Am 13.04.2016 um 09:21 schrieb Don Brutzman:<br>
> thanks for detail.  what i'm not understanding yet:<br>
><br>
> - how can we make it so a file runs online or locally<br>
> - x3dom is able to achieve that, somehow.  maybe a lesson learned.<br>
> - opening a web browser on a system might be OK for developers but is a<br>
> security hole, similar to plugin, and not allowable on enterprise systems<br>
><br>
> can we have this dialog on the mail list? am hoping to get broader<br>
> insight, there might be something we don't know...<br>
><br>
> On 4/13/2016 12:04 AM, Holger Seelig wrote:<br>
>> Using Google Chrome and Opera Browser with local files<br>
>><br>
>> Cobweb makes use of the XMLHttpRequest object to load files and<br>
>> there's no way round that. But that means files loading using the<br>
>> file:// scheme protocol are subject to the same origin policy and are<br>
>> handled as cross origin requests (CORS) and cross origin requests are<br>
>> only supported for protocol schemes: http, data and https. That means<br>
>> Cobweb cannot make access to this files.<br>
>><br>
>> To work around this problem you must set up a localhost server, than<br>
>> you can access your local files under the web address<br>
>> <a href="http://localhost/." rel="noreferrer" target="_blank">http://localhost/.</a>.. This can be done using XAMPP from the<br>
>> <a href="https://www.apachefriends.org" rel="noreferrer" target="_blank">https://www.apachefriends.org</a> website. XAMPP is a completely free,<br>
>> easy to install Apache distribution containing MariaDB, PHP, and Perl.<br>
>> The XAMPP open source package has been set up to be incredibly easy to<br>
>> install and to use.<br>
>><br>
>><br>
>> Am 12.04.2016 um 19:42 schrieb Don Brutzman:<br>
>>> [cc: community]<br>
>>><br>
>>> Hi Holger.  I've updated the X3dToX3dom.xslt stylesheet and X3D-Edit to<br>
>>> support your latest version 1.24.  Works great in Windows 7 in latest<br>
>>> Firefox v45.0.1.<br>
>>><br>
>>> Conversion result attached.  Wondering if it is correct since failures<br>
>>> are occurring in other web browsers.<br>
>>><br>
>>> Unfortunately, other browsers fail and have similar errors, apparently<br>
>>> cross-origin scripting restrictions.<br>
>>><br>
>>> Console excerpts follow.  Please advise, am thinking this is a common<br>
>>> problem that someone on the mail list may be able to help with.<br>
>>><br>
>>> ============================================<br>
>>> Internet Explorer "Edge" gives the following console error:<br>
>>> DOM7011: The code on this page disabled back and forward caching. For<br>
>>> more information, see: <a href="http://go.microsoft.com/fwlink/?LinkID=291337" rel="noreferrer" target="_blank">http://go.microsoft.com/fwlink/?LinkID=291337</a><br>
>>> File: HelloWorldCobweb.html<br>
>>><br>
>>> ============================================<br>
>>> Chrome console reports a similar error:<br>
>>><br>
>>> Welcome to Cobweb X3D Browser 1.24:<br>
>>>           Current Graphics Renderer<br>
>>>                   Name: WebKit WebGL 1.0 (OpenGL ES 2.0 Chromium)<br>
>>>                   Shading language: WebGL GLSL ES 1.0 (OpenGL ES GLSL ES<br>
>>> 1.0 Chromium)<br>
>>>           Rendering Properties<br>
>>>                   Antialiased: true<br>
>>>                   Color depth: 32 bits<br>
>>>                   Max clip planes: 6<br>
>>>                   Max lights: 8<br>
>>>                   Texture units: 16 / 32<br>
>>>                   Max texture size: 16384 ? 16384 pixel<br>
>>>                   Max vertex uniform vectors: 1024<br>
>>>                   Max fragment uniform vectors: 1024<br>
>>>                   Max vertex attribs: 16<br>
>>><br>
>>> cobweb.min.js:11 XMLHttpRequest cannot load<br>
>>> file:///C:/x3d-code/<a href="http://www.web3d.org/x3d/content/examples/HelloWorld.x3d" rel="noreferrer" target="_blank">www.web3d.org/x3d/content/examples/HelloWorld.x3d</a>.<br>
>>> Cross origin requests are only supported for protocol schemes: http,<br>
>>> data, chrome, chrome-extension, https,<br>
>>> chrome-extension-resource.e.dataType.binary.e.dataType.send @<br>
>>> cobweb.min.js:11<br>
>>> cobweb.min.js:12 Couldn't load URL 'HelloWorld.x3d':<br>
>>> ...<br>
>>> ============================================<br>
>>><br>
>>> Opera also reports a similar error:<br>
>>><br>
>>> cobweb.min.js:32 Welcome to Cobweb X3D Browser 1.24:<br>
>>>           Current Graphics Renderer<br>
>>>                   Name: WebKit WebGL 1.0 (OpenGL ES 2.0 Chromium)<br>
>>>                   Shading language: WebGL GLSL ES 1.0 (OpenGL ES GLSL ES<br>
>>> 1.0 Chromium)<br>
>>>           Rendering Properties<br>
>>>                   Antialiased: true<br>
>>>                   Color depth: 32 bits<br>
>>>                   Max clip planes: 6<br>
>>>                   Max lights: 8<br>
>>>                   Texture units: 16 / 32<br>
>>>                   Max texture size: 16384 ? 16384 pixel<br>
>>>                   Max vertex uniform vectors: 1024<br>
>>>                   Max fragment uniform vectors: 1024<br>
>>>                   Max vertex attribs: 16<br>
>>><br>
>>> cobweb.min.js:11 XMLHttpRequest cannot load<br>
>>> file:///C:/x3d-code/<a href="http://www.web3d.org/x3d/content/examples/HelloWorld.x3d" rel="noreferrer" target="_blank">www.web3d.org/x3d/content/examples/HelloWorld.x3d</a>.<br>
>>> Cross origin requests are only supported for protocol schemes: http,<br>
>>> data, chrome, chrome-extension, https,<br>
>>> chrome-extension-resource.e.dataType.binary.e.dataType.send @<br>
>>> cobweb.min.js:11oe.extend.ajax @<br>
>>> cobweb.min.js:3e.extend.loadDocumentAsync @<br>
>>> cobweb.min.js:12e.extend.loadDocument @<br>
>>> cobweb.min.js:12e.extend.createX3DFromURL @<br>
>>> cobweb.min.js:12e.extend.loadURL @ cobweb.min.js:32e.extend.realize @<br>
>>> cobweb.min.js:32t.processInterests @<br>
>>> cobweb.min.js:3e.extend.processEvent @ cobweb.min.js:4e.processEvents @<br>
>>> cobweb.min.js:8e.extend.traverse @ cobweb.min.js:23<br>
>>> cobweb.min.js:12 Couldn't load URL 'HelloWorld.x3d':<br>
>>> cobweb.min.js:11 XMLHttpRequest cannot load<br>
>>> file:///C:/x3d-code/<a href="http://www.web3d.org/x3d/content/examples/HelloWorld.x3d" rel="noreferrer" target="_blank">www.web3d.org/x3d/content/examples/HelloWorld.x3d</a>.<br>
>>> Cross origin requests are only supported for protocol schemes: http,<br>
>>> data, chrome, chrome-extension, https,<br>
>>> chrome-extension-resource.e.dataType.binary.e.dataType.send @<br>
>>> cobweb.min.js:11oe.extend.ajax @<br>
>>> cobweb.min.js:3e.extend.loadDocumentAsync @<br>
>>> cobweb.min.js:12e.extend.loadDocumentError @<br>
>>> cobweb.min.js:12e.ajax.error @ cobweb.min.js:12h @<br>
>>> cobweb.min.js:2d.fireWith @ cobweb.min.js:2i @ cobweb.min.js:3i.onerror<br>
>>> @ cobweb.min.js:11e.dataType.binary.e.dataType.send @<br>
>>> cobweb.min.js:11oe.extend.ajax @<br>
>>> cobweb.min.js:3e.extend.loadDocumentAsync @<br>
>>> cobweb.min.js:12e.extend.loadDocument @<br>
>>> cobweb.min.js:12e.extend.createX3DFromURL @<br>
>>> cobweb.min.js:12e.extend.loadURL @ cobweb.min.js:32e.extend.realize @<br>
>>> cobweb.min.js:32t.processInterests @<br>
>>> cobweb.min.js:3e.extend.processEvent @ cobweb.min.js:4e.processEvents @<br>
>>> cobweb.min.js:8e.extend.traverse @ cobweb.min.js:23<br>
>>> cobweb.min.js:12 Couldn't load URL<br>
>>> 'C:/x3d-code/<a href="http://www.web3d.org/x3d/content/examples/HelloWorld.x3d" rel="noreferrer" target="_blank">www.web3d.org/x3d/content/examples/HelloWorld.x3d</a>':<br>
>>> cobweb.min.js:11 GET<br>
>>> <a href="https://crossorigin.me/C:/x3d-code/www.web3d.org/x3d/content/examples/HelloWorld.x3d" rel="noreferrer" target="_blank">https://crossorigin.me/C:/x3d-code/www.web3d.org/x3d/content/examples/HelloWorld.x3d</a><br>
>>><br>
>>> 500 ()e.dataType.binary.e.dataType.send @ cobweb.min.js:11oe.extend.ajax<br>
>>> @ cobweb.min.js:3e.extend.loadDocumentAsync @<br>
>>> cobweb.min.js:12e.extend.loadDocumentError @<br>
>>> cobweb.min.js:12e.ajax.error @ cobweb.min.js:12h @<br>
>>> cobweb.min.js:2d.fireWith @ cobweb.min.js:2i @ cobweb.min.js:3i.onerror<br>
>>> @ cobweb.min.js:<a href="http://11e.dataType.binary.e.Re" rel="noreferrer" target="_blank">11e.dataType.binary.e.Re</a>: [WWW-Vrml] *** dataType.send @<br>
>>> cobweb.min.js:11oe.extend.ajax @<br>
>>> cobweb.min.js:3e.extend.loadDocumentAsync @<br>
>>> cobweb.min.js:12e.extend.loadDocumentError @<br>
>>> cobweb.min.js:12e.ajax.error @ cobweb.min.js:12h @<br>
>>> cobweb.min.js:2d.fireWith @ cobweb.min.js:2i @ cobweb.min.js:3i.onerror<br>
>>> @ cobweb.min.js:11e.dataType.binary.e.dataType.send @<br>
>>> cobweb.min.js:11oe.extend.ajax @<br>
>>> cobweb.min.js:3e.extend.loadDocumentAsync @<br>
>>> cobweb.min.js:12e.extend.loadDocument @<br>
>>> cobweb.min.js:12e.extend.createX3DFromURL @<br>
>>> cobweb.min.js:12e.extend.loadURL @ cobweb.min.js:32e.extend.realize @<br>
>>> cobweb.min.js<br>
>>> :<a href="http://32t.pr" rel="noreferrer" target="_blank">32t.pr</a><br>
>>><br>
>>> ocessInterests @ cobweb.min.js:3e.extend.processEvent @<br>
>>> cobweb.min.js:4e.processEvents @ cobweb.min.js:8e.extend.traverse @<br>
>>> cobweb.min.js:23<br>
>>> cobweb.min.js:12 Couldn't load URL<br>
>>> '<a href="https://crossorigin.me/C:/x3d-code/www.web3d.org/x3d/content/examples/HelloWorld.x3d" rel="noreferrer" target="_blank">https://crossorigin.me/C:/x3d-code/www.web3d.org/x3d/content/examples/HelloWorld.x3d</a>':<br>
>>><br>
>>><br>
>>><br>
>>> ============================================<br>
>>><br>
>>> On 4/4/2016 9:52 AM, Holger Seelig wrote:<br>
>>>> Cobweb X3D Browser, Version 1.23<br>
>>>><br>
>>>> We finally released Cobweb version 1.23, now.  This is the first<br>
>>>> official release for Opera Browser, Google Chrome and Mozilla Firefox.<br>
>>>> We did not celebrate this remarkable event yet, but beer was already<br>
>>>> purchased and would be used this week for sure.<br>
>>>><br>
>>>> I should say that Cobweb 1.23 took a lot of effort and we are proud to<br>
>>>> announce that the final result exceeded our expectations. The journey<br>
>>>> had just begun!<br>
>>>><br>
>>>> We?ve gathered as much feedback about Cobweb 1.22 as possible from our<br>
>>>> users and eliminated many mistakes and crude points in the new<br>
>>>> release.  Cobweb is now ready for Opera and Chrome.  We are not<br>
>>>> inventing new functions.  Instead, the stable code base of Cobweb<br>
>>>> makes it possible to run in different browsers.<br>
>>>><br>
>>>> Additionally we added three new examples to our website<br>
>>>> <a href="http://titania.create3000.de/cobweb/" rel="noreferrer" target="_blank">http://titania.create3000.de/cobweb/</a>.  First, ?Milkyway and Beyond? an<br>
>>>> example how to visualise huge scientific data of our universe.<br>
>>>> Second, ?FourmiEarth? processed data from the well known Fourmilab<br>
>>>> website, to display a pleasant view of our home planet.  Third,<br>
>>>> ?Currencies? processes data of the currencies data of the European<br>
>>>> Central Bank, to show a nice animated graph of it. To do this we draw<br>
>>>> thick 3D lines using an Extrusion node.<br>
>>>><br>
>>>> Visit Cobweb website now:<br>
>>>> <a href="http://titania.create3000.de/cobweb/" rel="noreferrer" target="_blank">http://titania.create3000.de/cobweb/</a><br>
>>>><br>
>>>> Thank to all who helped us.<br>
>>><br>
>>><br>
>>> all the best, Don<br>
>><br>
>><br>
><br>
><br>
> all the best, Don<br>
<br>
<br>
--<br>
Holger Seelig<br>
Mediengestalter Digital ? Digital Media Designer<br>
<br>
Scheffelstra?e 31a<br>
04277 Leipzig<br>
Germany<br>
<br>
Cellular: <a href="tel:%2B49%201577%20147%2026%2011" value="+4915771472611">+49 1577 147 26 11</a><br>
E-Mail:   <a href="mailto:holger.seelig@create3000.de">holger.seelig@create3000.de</a><br>
Web:      <a href="http://titania.create3000.de" rel="noreferrer" target="_blank">http://titania.create3000.de</a><br>
<br>
Future to the fantasy ? ?<br>
<br>
<br>
<br>
------------------------------<br>
<br>
Subject: Digest Footer<br>
<br>
_______________________________________________<br>
x3d-public mailing list<br>
<a href="mailto:x3d-public@web3d.org">x3d-public@web3d.org</a><br>
<a href="http://web3d.org/mailman/listinfo/x3d-public_web3d.org" rel="noreferrer" target="_blank">http://web3d.org/mailman/listinfo/x3d-public_web3d.org</a><br>
<br>
<br>
------------------------------<br>
<br>
End of x3d-public Digest, Vol 85, Issue 23<br>
******************************************<br>
</blockquote></div><br><br clear="all"><br>-- <br><div class="gmail_signature">Andreas Plesch<br>39 Barbara Rd.<br>Waltham, MA 02453</div>
</div></div></div>