Dart/Flutter: Http request raises XMLHttpRequest error

We Are Going To Discuss About Dart/Flutter: Http request raises XMLHttpRequest error. So lets Start this Flutter Article.

Dart/Flutter: Http request raises XMLHttpRequest error

How to solve Dart/Flutter: Http request raises XMLHttpRequest error

1- Go to flutter\bin\cache and remove a file named: flutter_tools.stamp
2- Go to flutter\packages\flutter_tools\lib\src\web and open the file chrome.dart.
3- Find ‘–disable-extensions’ remove and add 4.step
4- Add ‘–disable-web-security’

Dart/Flutter: Http request raises XMLHttpRequest error

1- Go to flutter\bin\cache and remove a file named: flutter_tools.stamp
2- Go to flutter\packages\flutter_tools\lib\src\web and open the file chrome.dart.
3- Find ‘–disable-extensions’ remove and add 4.step
4- Add ‘–disable-web-security’

Solution 1

1- Go to flutter\bin\cache and remove a file named: flutter_tools.stamp

2- Go to flutter\packages\flutter_tools\lib\src\web and open the file chrome.dart.

3- Find ‘–disable-extensions’ remove and add 4.step

4- Add ‘–disable-web-security’

Original Author bekirduran Of This Content

Solution 2

Thanks to @Reza M I could identify the problem. I was missing '--disable-web-security' in the web configuration.

1- Go to flutter\bin\cache and remove a file named: flutter_tools.stamp

2- Go to flutter\packages\flutter_tools\lib\src\web and open the file chrome.dart.

3- Find '--disable-extensions'

4- Add '--disable-web-security'

Instructions for flutter came from this post.

Original Author edited Jun 4 at 12:55 Of This Content

Conclusion

So This is all About This Tutorial. Hope This Tutorial Helped You. Thank You.

Also Read,

ittutorial team

I am an Information Technology Engineer. I have Completed my MCA And I have 4 Year Plus Experience, I am a web developer with knowledge of multiple back-end platforms Like PHP, Node.js, Python and frontend JavaScript frameworks Like Angular, React, and Vue.

Leave a Comment