Back

[SOLVED] Appwrite CORS Error in Flutter Web

  • 0
  • Flutter
  • Cloud
George Sadek
3 Oct, 2023, 17:48

appwrite Access to XMLHttpRequest at 'https://cloud.doctorinphysics.com/v1/account?#' from origin 'https://receipts.doctorinphysics.com' has been blocked by CORS policy: The 'Access-Control-Allow-Origin' header has a value 'https://localhost' that is not equal to the supplied origin.

TL;DR
The user had an Appwrite CORS error in their Flutter web app. The solution was to add 'https://receipts.doctorinphysics.com/' as a Flutter web platform in the project overview page. The error was due to a typo in the URL. Once the correction was made, the CORS error was resolved.
Binyamin
3 Oct, 2023, 17:49

Add https://receipts.doctorinphysics.com/ as Flutter web platform in your project overview page

Binyamin
3 Oct, 2023, 17:49

Then try again

George Sadek
3 Oct, 2023, 17:53

Oh thanks, It was a typo error,

safwan
3 Oct, 2023, 17:56

[SOLVED] Appwrite CORS Error in Flutter Web

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