xml3d / xml3d.js

The WebGL/JS implementation of XML3D
Other
75 stars 25 forks source link

Requesting Textures with credentials fails #69

Closed ksons closed 9 years ago

ksons commented 9 years ago

In Chrome, image requests are sent without credentials. This is because xml3d.js sets the crossOrigin to "anonymous" if the request is cross-origin or not.

A possible solution:

As soon as a cross-side texture is used, the related canvas is set tainted and operations such as picking will stop working because the browser throws a security exception if pixels are read. Thus a warning should be written to console if someone tries using a cross-side texture. Also, one should check if the security exception is handled in the framework.