
i am using Cloudflare to add custom domain in appwrite console i got 3 issue.
- Domain Verification failed message
- after domain verification failed when i hot the custom domain url its working actully but it redirect to the AppWrite console after login i can see all my projects.
- after deploye flutter web added custom domain and all the configuration but got error like this when i logged in in my flutter web project "Access to XMLHttpRequest at 'https://quoteheaven.life/v1/account/sessions/email' from origin 'https://quote-heaven.pages.dev' 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."

Domain verification failed Domain hosted on CloudFlare

Domain Verification failed message
Yes, this is expected because the IP address doesn't match appwrite cloud. It's fine, though because Cloudflare will be generating your certificate and not Appwrite.
it redirect to the AppWrite console after login i can see all my projects.
This is expected and fine.
CORS policy: The 'Access-Control-Allow-Origin' header has a value
Double check you've added a web platform that matches the hostname of your app. Also double check your project ID is set and correct.
One of the biggest reasons why you use a custom domain is so that your app and appwrite will have the same base domain and the appwrite session cookie will be considered a 1st party cookie. so, make sure your prod app will be on the same base domain

For the domain verification issue you can disable proxy, do verification and enable proxy in cloudflare DNS tab
Recommended threads
- CRUD Operations don't work
Hey all, Create, update, and delete is not working for the Appwrite database. The database seems down. When will it be solved? As I can see from the other suppo...
- Is my approach for deleting registered u...
A few weeks ago, I was advised not to use the registered users' id in my web app. Instead, I store the publicly viewable information such as username and email ...
- Unable to create push providers - FCM or...
Currently unable to create a push provider for FCM or APNS.... https://github.com/appwrite/console/issues/2045 When uploading a file... FCM = Valid file retu...
