model-element icon indicating copy to clipboard operation
model-element copied to clipboard

Formats and CSP

Open marcoscaceres opened this issue 3 years ago • 7 comments

Need to clarify that 3D resources can fetch resources, and as such need to be subject the document's CSP (probably "media-src"). However, we need to clarify what this means in relation to, say, "img-src", for example... as models can load png/jpg textures.

marcoscaceres avatar Aug 03 '22 05:08 marcoscaceres

This issue seems to be about CSP, not CORS?

domenic avatar Aug 17 '22 23:08 domenic

Ah whoops, yes. Acronym soups getting all mixed up in my head. Fixed the title and OP.

marcoscaceres avatar May 10 '24 00:05 marcoscaceres

However, we need to clarify what this means in relation to, say, "img-src", for example... as models can load png/jpg textures.

I don't know the answer myself, but I guess we can look at the precedents from CSS and SVG.

domenic avatar May 10 '24 01:05 domenic

Ah whoops, yes. Acronym soups getting all mixed up in my head. Fixed the title and OP.

Browser generally frown upon subresource fetches. The model element should fetch only 1 file and not reach out later for additional ones. SVG-as-a-image was changed to no longer allow fetches.

cabanier avatar May 10 '24 02:05 cabanier