Hello There! First off: i have followed every step of https://appwrite.io/blog/post/cors-error
The mobile Flutter app works just fine, and so does it when i test it locally. But when trying to use the actual DOmain, i get CORS errors when requesting data from Appwrite.
I have set the right prioject id, i have used the right hostname, even tried the wildcard as hostname, yet the requests keep getting blocked. For some rteason, the "Access Control Allow origin" is still set at localhost? im at my wits end and i got no clue what im doing wrong.
WHen building the App via flutter build web --release and hosting locally via serve -s, i added the localhost domain. it works via localhost and on my network via the IP
Wait no i lied, it doesnt work again. Localhost does work, but not via the network...
Localhost works, i get all the appwrite data im requesting. as soon as i switch to 182.168.178.80 it ceases to work and i get a COrS error.
its not working even with a wildcard
I believe you're supposed to create a Mobile Platform with the package name?
Recommended threads
- Unable to init function via cli
Hello! I have created a new self hosted instance of appwrite 1.9.6 and have connected to that insatnce with the cli 27.2.0 that was released a few hours ago. Wh...
- Appwrite-injected variables are not avai...
I am using rust-1.83 as a runtime and try to access APPWRITE_FUNCTION_API_ENDPOINT or APPWRITE_FUNCTION_API_KEY during runtime. Both are not set during my execu...
- Appwrite (Dart SDK) (for package_info_pl...
Hi team! Many Flutter plugins now need package_info_plus 10.x and device_info_plus 13.x, but appwrite 25.4.0 still constrains package_info_plus: >=8.0.2 <10.0...