Back

[SOLVED] Cors error on the custom domain

  • 1
  • General
  • Accounts
  • Web
Meldiron
6 Mar, 2023, 19:01

Oh cool connection is secure for me now

TL;DR
Solution: The issue was due to a CORS error on the custom domain. The solution was to install SSL. However, it was later discovered that the issue was actually with the password being less than 8 characters. After resolving that, a new issue occurred with a 400 error. The suggestion was to change some variables in the .env file and restart the Docker container. It was also mentioned that the SSL should be configured correctly. Finally, the connection was confirmed to be secure.
Nimit Savant
6 Mar, 2023, 19:01

yeah xD it was giving me errors since evening

Nimit Savant
6 Mar, 2023, 19:01

since last 8 attempts

Meldiron
6 Mar, 2023, 19:01

Soo can we try it now? To see what CORS error we get now? πŸ˜…

Nimit Savant
6 Mar, 2023, 19:01
Nimit Savant
6 Mar, 2023, 19:01

yeah sure

Meldiron
6 Mar, 2023, 19:01

oooh dry runs. Wait but why does it work with dry runs? 😳

Meldiron
6 Mar, 2023, 19:02

You need to change a few variables in .env:

  • _APP_ENV set to production
  • _APP_DOMAIN set to appwrite.idta.in
  • _APP_DOMAIN_TARGET set to appwrite.idta.in Then docker compose down and docker compose up -d to restart
Meldiron
6 Mar, 2023, 19:02

Then domain should be known, and dry runs should no longer occur.

Nimit Savant
6 Mar, 2023, 19:03

but the ssl is configured right? I should this still?

Meldiron
6 Mar, 2023, 19:03

No idea how SSL got configured in development mode with dry runs. It should not be working. So I would prefer doing it

Nimit Savant
6 Mar, 2023, 19:03

This is already set

Meldiron
6 Mar, 2023, 19:03

okay cool

Meldiron
6 Mar, 2023, 19:03

yeah, well, then we sohuld be set. Any CORS errors now?

Nimit Savant
6 Mar, 2023, 19:04
Nimit Savant
6 Mar, 2023, 19:04

nope now its giving 400

Meldiron
6 Mar, 2023, 19:04

screenshot? πŸ‘€

Nimit Savant
6 Mar, 2023, 19:05

ok its working now, it the password was less than 8 chars

Meldiron
6 Mar, 2023, 19:05

πŸŽ‰

Nimit Savant
6 Mar, 2023, 19:05

Thanks this is working now.

Nimit Savant
6 Mar, 2023, 19:05
Meldiron
6 Mar, 2023, 19:05

Cool so it was HTTPS in the end. Integersting. Good to learn.

Nimit Savant
6 Mar, 2023, 19:05

So conclusion, Please install SSL guys :)

Nimit Savant
6 Mar, 2023, 19:06

Thanks :)

Meldiron
6 Mar, 2023, 19:06

[SOLVED] Cors error on the custom domain

Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more