Back

XMLHttpRequest - Flutter WEB

  • 0
  • Flutter
Ahmed Hammad
19 Feb, 2024, 18:36

I am simply trying to do Auth from Flutter Web ( Local host ) , but I am getting this error , idk where is the problem is this project was working fine last time I tested it , nothing changed

Same project working fine on Android Version , just the WEB Versions with same code getting this error

Error: AppwriteException: null, XMLHttpRequest error. (0)

TL;DR
Developers are experiencing a CORS error on a login request in Flutter Web on localhost. The error appeared after making small modifications to the project before uploading it. The project works fine on Android but encounters issues on the web. The error received is "AppwriteException: null, XMLHttpRequest error. (0)". Solution: Check the network tab to see if there are any errors in the request response tab. Additionally, ensure that Flutter web is added to the platforms.
Binyamin
19 Feb, 2024, 18:40

Have you added the Flutter web in the platforms?

Ahmed Hammad
19 Feb, 2024, 18:53

it's local host will run without adding anything but yea I have custom domain added to my host for more trusting , added same domain to platform uploaded my flutter web project to this host that was working fine before editing the project and problem appeared , tested it locally same ( I just made a small modification so didn't test it locally before uploading)

Binyamin
19 Feb, 2024, 18:55

Oops, I've missed that is it localhost

Anyhow, can you check in the network tab to see if you see any error in the request response tab?

Ahmed Hammad
19 Feb, 2024, 18:57

CORS error on login request status

Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more