You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After upgrading to Flutter 3.27.0, the usage of CachedNetworkImage causes error: SecurityError: Failed to execute 'texImage2D' on 'WebGL2RenderingContext': The image element contains cross-origin data, and may not be loaded.Β #995
I've upgraded my project's Flutter version to 3.27.0, and now, when I run the web version, I get a lot of errors like this:
canvaskit.js:21 Uncaught (in promise) SecurityError: Failed to execute 'texImage2D' on 'WebGL2RenderingContext': The image element contains cross-origin data, and may not be loaded.
UPD: Since in my project, CachedNetworkImage is heavily used, and there are quite a lot of images, too much Failed to execute 'texImage2D' on 'WebGL2RenderingContext causes Additional error: RuntimeError: memory access out of bounds and overall crash of the app.
Expected behavior
It should load an image normally, like it used to in the previous Flutter versions
Reproduction steps
Create a project with flutter version 3.27.0
Use CachedNetworkImage
Run project in web
Configuration
Version: 3.4.1
Platform:
:web
ska2519, LukasMirbt, timoschloesser, gabrielginter, btmo and 33 moreska2519, m-j-g, ihadabs, SoftWyer, stephensamonte and 1 more