[SOLVED] "Domain verification for the requested domain has failed." for a custom domain
- 0
- Resolved
- Web
my appwrite instance is hosted at "aw.<myhostname>.com", when I try to define my custom domain as "aw.<myhostname>.com" it fails with a PATCH request which returns a 401 and a json with "Domain verification for the requested domain has failed.", my enviroment variables for "_APP_DOMAIN" and "_APP_DOMAIN_TARGET" are the same, so I am really unsure what the problem could be, could anyone please help me?
How many domains do you need for Appwrite?
only one
thank you very much for your answer btw! I have been slamming my head against the wall for a bit over this problem
Then you don't need to create a custom domain.
I thought so but the reason I was doing this was to avoid a warning I get at the web console when my site interacts with appwrite
the warning being "Appwrite is using localStorage for session management. Increase your security by adding a custom domain as your API endpoint."
I am unsure what that means or how to make it go away
Maybe this will help: https://appwrite.io/docs/custom-domains
the docs suggest me to use a custom domain, should i use one or not?
yes, but please make sure to read all the information thoroughly
appwrite is hosted on the subdomain "aw.<myhostname>.com" and my app is hosted at "<myhostname>.com", is that not enough to make the error go away?
In this case, you shouldn't need a custom domain then
Some questions:
- Do you have a reverse proxy in front of Appwrite?
- Are you connecting to Appwrite using https?
- Do you have a valid SSL certificate?
- no
- yes
- yes
You shouldn't see the warning then 🧐
If it's any use, the site is hosted in digital ocean as a webapp, which does the SSL part oob, while appwrite is hosted on a droplet
Would you be able to DM me the URL for your app?
@骨头 does your issue solved
Yes, the issue was resolved. There was no custom domain needed since only 1 main domain was required.
[SOLVED] "Domain verification for the requested domain has failed." for a custom domain
@Steven how to add one custom domain
if you need help, please create a new post in <#1072905050399191082>
Recommended threads
- Error can not create `tablesdb` event wi...
When i'm trying to add an event with `tablesdb` i get an error message My event value: `tablesdb.mtg-decklist-dev.tables.queue_parsing.rows.*.create` Same err...
- GitHub Student Login Loop Issue
signed up using my GitHub Student Developer Pack. However, whenever I click "Sign in with GitHub", I get stuck on the login page. No matter how many times I try...
- Google OAuth Not Working on Brave/Firefo...
I'm having an issue with Google OAuth in my React + Appwrite app. After login, the dashboard is accessible only in Microsoft Edge, but fails in Brave and Firefo...