chore: improve invalid scheme error in origin check

This commit is contained in:
Chirag Aggarwal 2025-07-18 22:08:43 +05:30
parent 5742dad1e4
commit d613237fb4

View file

@ -75,6 +75,10 @@ class Origin extends Validator
return 'Invalid Origin.';
}
if (!isset($platform)) {
return 'Invalid Scheme. The scheme used ( ' . $this->scheme . ' ) is not supported. If you are using a custom scheme, please change it to `appwrite-callback-<PROJECT_ID>`';
}
return 'Invalid Origin. Register your new client ' . $host . ' as a new '
. $platform . ' platform on your project console dashboard';
}