From 7e378a3a1ee3cd2e7b0ce7f9902d0048576481a4 Mon Sep 17 00:00:00 2001 From: Chirag Aggarwal Date: Thu, 26 Jun 2025 19:10:35 +0530 Subject: [PATCH] chore: more logging --- src/Appwrite/Network/Validator/Origin.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Appwrite/Network/Validator/Origin.php b/src/Appwrite/Network/Validator/Origin.php index 33426b7d56..8fd2120042 100644 --- a/src/Appwrite/Network/Validator/Origin.php +++ b/src/Appwrite/Network/Validator/Origin.php @@ -46,6 +46,8 @@ class Origin extends Validator Console::info('Origin: ' . $origin); Console::info('Hostnames: ' . json_encode($this->hostnames, JSON_PRETTY_PRINT)); Console::info('Host: ' . $this->host); + $validator = new Hostname($this->hostnames); + Console::info('Valid Hostname? ' . $validator->isValid($this->host) ? 'Yes' : 'No'); Console::info('Schemes: ' . json_encode($this->schemes, JSON_PRETTY_PRINT)); Console::info('Scheme: ' . $this->scheme); @@ -57,7 +59,6 @@ class Origin extends Validator return false; } - $validator = new Hostname($this->hostnames); return $validator->isValid($this->host); }