Back

[solved] Flutter iOS Invalid Origin

  • 0
  • Flutter
  • Cloud
StefanB
17 Nov, 2023, 10:49

Specs:

  • Appwrite Cloud
  • Flutter 3.13.8
  • appwrite: ^11.0.0

I try to create an email session and get following error: AppwriteException: general_unknown_origin, Invalid Origin. Register your new client (<my package name>) as a new iOS platform on your project console dashboard (403)

I added the platform via the console with matching package name and checked it twice by copying the name from the error and inserted it into cloud. Creating a new project and trying out led to the same error; also using an existing project where it worked with another flutter project. Did I forgot something?

TL;DR
The user is experiencing an "Invalid Origin" error while trying to create an email session in their Flutter iOS app with the Appwrite Cloud service. They have already added the platform via the console with the correct package name, but the error persists. The user wonders if they have missed anything. The solution to this problem is to check the request headers by turning on the network inspector. This will help identify any incorrect project id or other issues with the headers. Additionally, ensure that the package name is correct and matches the one added in the console. Additionally, the user mentions that they had previously encountered the same error with another Flutter project
Drake
18 Nov, 2023, 03:20

Maybe an incorrect project id?

Maybe you can turn on the network inspector and check the request headers

StefanB
20 Nov, 2023, 05:50

[solved] Flutter iOS Invalid Origin

Drake
20 Nov, 2023, 19:23

what was the problem?

StefanB
24 Nov, 2023, 21:33

I added the project id as variable, but didn't finally inject it to the client 😬

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