[x3d-public] [consortium] Cross Origin Access, CORS support for X3DOM editor

Web3D WebServices webmaster at web3d.org
Thu May 11 06:07:16 PDT 2023


The one listed issue is that there is no file at the specified URL. 
There needs to be another 'Appearance/' in the path.

Leonard Daly


On 5/11/2023 1:38 AM, Brutzman, Donald (Don) (CIV) wrote:
> ...
>
> Problem: ConformanceNist examples do not appear to be getting handled 
> properly.  Example:
>
>   * https://andreasplesch.github.io/Library/Viewer/index.html?url=https://www.web3d.org/x3d/content/examples/ConformanceNist/Appearance/material.x3d
>   * web3d.org/x3d/content/examples/ConformanceNist/Appearance/material.x3d'
>     from origin 'https://andreasplesch.github.io' has been blocked by
>     CORS policy: No 'Access-Control-Allow-Origin' header is present on
>     the requested resource. If an opaque response serves your needs,
>     set the request's mode to 'no-cors' to fetch the resource with
>     CORS disabled.
>
> Leonard, when you are satisfied that everything is set up OK for 
> web3d.org CORS, I hope that you can configure x3dgraphics.com CORS 
> similarly.
>
> all the best, Don
>
> -- 
>
> Don Brutzman  Naval Postgraduate School, Code USW/Br brutzman at nps.edu
>
> Watkins 270,  MOVES Institute, Monterey CA 93943-5000 USA    
> +1.831.656.2149
>
> X3D graphics, virtual worlds, navy robotics 
> https://faculty.nps.edu/brutzman
>
> *From:* Brutzman, Donald (Don) (CIV) <brutzman at nps.edu>
> *Sent:* Sunday, May 7, 2023 9:14 PM
> *To:* Web3D WebServices <webmaster at web3d.org>; x3d-public at web3d.org; 
> Consortium <consortium at web3d.org>
> *Cc:* Brutzman, Donald (Don) (CIV) <brutzman at nps.edu>
> *Subject:* RE: [consortium] Cross Origin Access, CORS support for 
> X3DOM editor
>
> Wow very powerful results, thanks Leonard for excellent work.
>
> There are quite a few CORS references online as follows, additional 
> suggestions are welcome.
>
>   * X3D Scene Authoring Hints: CORS
>   * https://www.web3d.org/x3d/content/examples/X3dSceneAuthoringHints.html#CORS
>
> Also thanks Andreas for making this capability available.  Again wow.
>
> Looking forward to continued experimentation and progress.
>
> all the best, Don
>
> -- 
>
> Don Brutzman  Naval Postgraduate School, Code USW/Br brutzman at nps.edu
>
> Watkins 270,  MOVES Institute, Monterey CA 93943-5000 USA    
> +1.831.656.2149
>
> X3D graphics, virtual worlds, navy robotics 
> https://faculty.nps.edu/brutzman
>
> *From:* consortium <consortium-bounces at web3d.org> *On Behalf Of *Web3D 
> WebServices
> *Sent:* Sunday, May 7, 2023 8:45 PM
> *To:* x3d-public at web3d.org; Consortium <consortium at web3d.org>
> *Subject:* [consortium] Cross Origin Access
>
> The entirety of the https://www.web3d.org/x3d/content directory tree 
> has been made cross-origin accessible. Existing restricting apply on 
> the actual request. That means that a request by a browser running a 
> web page from a host different from https://www.web3d.org/ can request 
> access to any file in https://www.web3d.org/x3d/content/*. The browser 
> should grant Cross Origin access (aka CORS) to that request. The Web3D 
> server will separately determine if the request will be granted.
>
> For example, various X3D worlds in 
> https://www.web3d.org/x3d/content/examples/Basic can be displayed in 
> Andreas' X3DOM viewer at 
> https://andreasplesch.github.io/Library/Viewer/index.html, 
> specifically 
> https://andreasplesch.github.io/Library/Viewer/index.html?url=https://www.web3d.org/x3d/content/examples/HelloWorld.x3d 
> does display this example.
>
> The access controls are a little looser than I would like. I plan on 
> tightening them up over the next week for all files not in 
> https://www.web3d.org/x3d/content/examples/. If files not in that path 
> need CORS support OR files in that path should not have CORS support, 
> then please let me know right away.
>
> -- 
> *Leonard Daly*
> WebServices, Web3D Consortium
> President, Daly Realism - /Creating the Future/
>
>
> _______________________________________________
> x3d-public mailing list
> x3d-public at web3d.org
> http://web3d.org/mailman/listinfo/x3d-public_web3d.org
-- 
*Leonard Daly*
WebServices, Web3D Consortium
President, Daly Realism - /Creating the Future/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://web3d.org/pipermail/x3d-public_web3d.org/attachments/20230511/9adadcf2/attachment.html>


More information about the x3d-public mailing list