Flutter web generally has Cors problem because the "flutter run web" command is used default Cros configuration of the web browser. But you can change Cors policy when you run Flutter web.
You can run this command for disabled browser cors problems when you run development;
flutter run -d chrome --web-browser-flag "--disable-web-security"
Please Do Not Forget
Your client is not run this command when opening the browser self-computer. You must solve the Cors problem when you publish your app on the server. You must search the Cors policy for your web server configuration.
Generally, when I use the image source from assets I had this problem many times. And I changed my web server conf. and solved.
2
Answers
Can you try it?
Flutter web generally has Cors problem because the "flutter run web" command is used default Cros configuration of the web browser. But you can change Cors policy when you run Flutter web.
You can run this command for disabled browser cors problems when you run development;
Please Do Not Forget
Your client is not run this command when opening the browser self-computer. You must solve the Cors problem when you publish your app on the server. You must search the Cors policy for your web server configuration.
Generally, when I use the image source from assets I had this problem many times. And I changed my web server conf. and solved.
If you want more information about Cors problem of Flutter Web you can check this URL for it: https://github.com/flutter/flutter/pull/104935