Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Requesting Textures with credentials fails #69

Closed
ksons opened this issue Sep 25, 2014 · 0 comments
Closed

Requesting Textures with credentials fails #69

ksons opened this issue Sep 25, 2014 · 0 comments

Comments

@ksons
Copy link
Member

ksons commented Sep 25, 2014

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:

  • Remove setting to "anonymous"
  • Check if texture request is cross origing
  • If yes, set the CORS attribute to the value defined by an entry in XML3D.options

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.

@ksons ksons closed this as completed in e1a3788 Oct 17, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant