Back

Help, Invalid Origin. Register your new client (someweb.com) as a new Web platform on your project

  • 0
  • Self Hosted
  • Accounts
  • Web
dcxin
8 Dec, 2023, 09:00

Hi, help please. I am trying to self-host Appwrite service by using docker-compose, but met this error when I try to signup the first account.

TypeScript
Invalid Origin. Register your new client (eeeee.sss.com) as a new Web platform on your project console dashboard

I have tried this solution https://github.com/appwrite/appwrite/discussions/4818, still now work, also tried:

  1. set host header in Nginx config
  2. checked vars by docker compose exec appwrite vars
TL;DR
The user is trying to self-host Appwrite service using docker-compose but is encountering an "Invalid Origin" error when signing up. They have tried various solutions mentioned in a GitHub discussion but none have worked. They also checked the variables using the command `docker compose exec appwrite vars`. The issue may be due to incorrect environment variables. The user wants to access the website through port 10011 instead of the default port 9001. The user is unable to use port 443 due to other services running on the server.
Drake
8 Dec, 2023, 10:42

This only happens if your domain environment variables are incorrect 🧐

You're accessing Appwrite with the same domain as the domain env var? And you put the domain only in the environment variable, right?

dcxin
8 Dec, 2023, 12:36

thanks for reply, I think my environment variables definitely incorrect, I need to access the website by a port 10011, is this the reason? In the env file, the port is 9001 for Appwrite, and open access by the proxy_pass of Nginx with port 10011, so I could visit it by the domain: https://somesite.com:10011

I've deployed too much services on my small server, and I can't use the 443 port.

Drake
8 Dec, 2023, 17:04

There are no ports configured for the appwrite host in the .env file

Drake
8 Dec, 2023, 17:05

If you have a reverse proxy on port 443, you can expose anything on 443 through it

dcxin
9 Dec, 2023, 02:21

I see, thanks~

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