Connect Flutter Web to Back End Using cross platform
In Flutter normally we run backend on localhost , but in mobile app emulator works as a different network and pc is in a another network, so localhost mode is not working for both web and mobile. As a Solution I found out Cross Platform connectivity for my app. First you need to disable web security because it wont allow to connect backend server.
 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’
Connect Flutter Web to Back End Using cross platform In Flutter normally we run backend on localhost , but in mobile app emulator works as a different network and pc is in a another network, so localhost mode is not working for both web and mobile. As a Solution I found out Cross Platform connectivity for my app. First you need to disable web security because it wont allow to connect backend server.
 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’ backend
Connect Flutter Web Back End Using cross platform Flutter normally run backend localhost mobile app emulator work different network pc another network localhost mode working web mobile Solution found Cross Platform connectivity app First need disable web security wont allow connect backend server 1Go flutterbincache remove file namedfluttertoolsstamp 2Go flutterpackagesfluttertoolslibsrcweb open file chromedart 3Find ‘ disableextensions’ 4Add ‘ disablewebsecurity’ backend