Back

Cors error in Flutter App after switching to 1.5.5

  • 0
  • Flutter
  • Android
  • Auth
  • Apple
  • Self Hosted
Saabir
5 May, 2024, 14:03

which came up after a fresh install ... 1.5.5 flutter app (auth everything all working fine 1.4.13) the cors all seem to be broken when i create account it says URL host must be one of: localhost, appwr.mydomain.com , *.mydomain.com but im using flutter and also the lastest plugin...i added the platform etc with the appids like com.mydomain.myapp (reverse) why is the flutter app (androind) ....saying the above ... i cant get passed this ...i deleted all platform and re-added step by step ...still nothing... also it creates the account actually but still says the above. cors message...and wont allow login (with the above) i am using a ios, android version and 2 apps so i have like 4 of these com.mydomain.myapp1-android com.mydomain.myapp1-ios ...and so on like 1 for each ...always did it this way all my apps work (this is self hosted instance ...in linode) also the origin shows in the profiler as origin [appwrite-android://com.mydomain.myapp] is this string not matching ...? cos i use the console UI to choose is this a bug ? my app never had this issue i always just app my bundle IDs or URLs

TL;DR
Developers facing a CORS error in Flutter app v1.5.5 after fresh install. Error message related to URL hostname restrictions. Possible issue with origin string not matching. Solution could be to update app's hostname or adjust CORS settings in backend.
Steven
5 May, 2024, 14:38

What is your code?

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