When testing REST API calls from FlutterFlow (GUI app building service based on Flutter framework) with enabled by default proxy routing, everything works fine.
When I disable proxy routing, I get this error in the browser's console: Access to XMLHttpRequest at 'https://cloud.appwrite.io/v1/account/tokens/email' from origin 'https://app.flutterflow.io' 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.
When I make API calls from my app running in iOS simulator, I get this error message (raw body): {"message":"Server Error","code":500,"type":"general_unknown","version":"1.5.8"}
.
My initial hypothesis was that it also has something to do with CORS policies. I tried creating different platforms in Appwrite Console, including Web app with hostnames localhost
or *
(general wildcard) with no luck. I also tried to create a Flutter iOS platform with my app's name and Bundle ID with no luck either.
I use no SDKs making all calls via REST API (for example, Create email token (OTP)
).
Any help will be appreciated!
Go to project overview then create web app
Paste this https://app.flutterflow.io in and you're good to go
Recommended threads
- Attributes Confusion
```import 'package:appwrite/models.dart'; class OrdersModel { String id, email, name, phone, status, user_id, address; int discount, total, created_at; L...
- Update User Error
```ts const { users, databases } = await createAdminClient(); const session = await getLoggedInUser(); const user = await users.get(session.$id); if (!use...
- apple exchange code to token
hello guys, im new here 🙂 I have created a project and enabled apple oauth, filled all data (client id, key id, p8 file itself etc). I generate oauth code form...