You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@echarts.apache.org by GitBox <gi...@apache.org> on 2019/10/04 11:27:28 UTC

[GitHub] [incubator-echarts] alex2wong commented on issue #11365: Failed to execute 'texImage2D' on 'WebGL2RenderingContext': The image element contains cross-origin data, and may not be loaded.

alex2wong commented on issue #11365: Failed to execute 'texImage2D' on 'WebGL2RenderingContext': The image element contains cross-origin data, and may not be loaded.
URL: https://github.com/apache/incubator-echarts/issues/11365#issuecomment-538359038
 
 
   I guess you're experiencing CORS issue in **file protocol**. You should make sure your page and  assets are served by http/https protocol and the client code request assets within the same domain. Otherwise, browser would restrict **cross-domain file** to be manipulated in canvas. 
   
   Opening html file directly in browser can **not** serve assets by http protocol apparently.
   
   you can simply use npm to install `http-server` to serve static files.
   ```
   npm i http-server -g
   cd YourFolder
   http-server
   ```
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org