The error event is fired when the request encountered an error.
How do I fix XMLHttpRequest error?
This is simple solution:
1. step- go to flutter\bin\cache and remove a file named: flutter_tools.stamp.
2. step- go to flutter\packages\flutter_tools\lib\src\web and open the file chrome.dart.
3. step- find '--disable-extensions' remove and add 4.step.
4. step- add '--disable-web-security'