supereggbert / aframe-htmlembed-component

HTML Component for A-Frame VR that allows for interaction with HTML in VR. Demo https://supereggbert.github.io/aframe-htmlembed-component/dist/examples/index.html
MIT License
196 stars 41 forks source link

Image doesn't show #6

Open meizano opened 5 years ago

meizano commented 5 years ago

I have try the example. The image doesn't show up. But, if I try to inspect the document, it is downloaded and accessible. If there's any special requirement for using image in html? Beside what stated in the github repo.

supereggbert commented 5 years ago

This sound like an origin issue, images have to be on the same origin or have the appropriate CORS headers.

LukeTOBrien commented 4 years ago

I get this issue too, I think this is a limitation as we are not rendering as the browser would.
Why does this happen? How are you loading images?

I would of thought using the Image class shouldn't be an issue for CORS .

supereggbert commented 4 years ago

Unfortunately, CORS does effect images. To render HTML to a canvas all external assets have to be embedded as data urls which the library generates from XHR requests.