mirror of
https://github.com/appwrite/appwrite
synced 2026-05-23 08:58:35 +00:00
fix: add missing check for hostname
This commit is contained in:
parent
0fb55f6312
commit
18d30c48d5
1 changed files with 4 additions and 1 deletions
|
|
@ -55,7 +55,10 @@ class Origin extends Validator
|
|||
return $validator->isValid($this->host);
|
||||
}
|
||||
|
||||
if (!empty($this->scheme) && in_array($this->scheme, $this->schemes, true)) {
|
||||
if (!empty($this->scheme) &&
|
||||
in_array($this->scheme, $this->schemes, true) &&
|
||||
in_array($this->host, $this->hostnames, true)
|
||||
) {
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue