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?
Summary
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
Nov 18, 2023, 03:20
Maybe an incorrect project id?
Maybe you can turn on the network inspector and check the request headers
StefanB
Rank 2: Process
Nov 20, 2023, 05:50
[solved] Flutter iOS Invalid Origin
Drake
Nov 20, 2023, 19:23
what was the problem?
StefanB
Rank 2: Process
Nov 24, 2023, 21:33
I added the project id as variable, but didn't finally inject it to the client 😬