mirror of
https://github.com/appwrite/appwrite
synced 2026-05-23 00:49:02 +00:00
chore: improve invalid scheme error in origin check
This commit is contained in:
parent
5742dad1e4
commit
d613237fb4
1 changed files with 4 additions and 0 deletions
|
|
@ -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';
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue