I can't use the image URL from my domain but I can use the image URL from another domain like Facebook. The error is:

It happened when putting the image URL from StackOverflow in the Image.network() too. For example, try using the picture above(Image.network('https://i.stack.imgur.com/o6lwE.png')).
The basic method for fixing is rendered with HTML(flutter run -d chrome --web-renderer html) but I need to use the toImage() function and rendering with HTML doesn't support this function. So I render with Canvaskit.
This link(https://docs.flutter.dev/development/platform-integration/web-images#host-your-images-in-a-cors-enabled-cdn) can help someone who is using the Firebase but I am using the Ubuntu with the Apache.
Actually, I want to render with HTML because after rendering with Canvaskit I encountered a lot of problems.
Render with HTML case: If there is a function that can be used instead of the toImage() function, please tell me.
Render with Canvaskit case: If you know how to display the image URL with Image.network(), please tell me.
Thank you.
