mirror of
https://github.com/appwrite/appwrite.git
synced 2026-11-18 20:36:03 +00:00
feat: improved reference client ip through _APP_TRUSTED_HEADERS
This commit is contained in:
1 parent
cd8e93db60
commit
90fb5b6321
4 files changed
+47
No files matched your search
@@ -9,9 +9,12 @@ use Swoole\Http\Request as SwooleRequest;
|
||||
use Utopia\Database\Validator\Authorization;
|
||||
use Utopia\Route;
|
||||
use Utopia\Swoole\Request as UtopiaRequest;
|
||||
use Utopia\System\System;
|
||||
|
||||
class Request extends UtopiaRequest
|
||||
{
|
||||
protected array $trustedIpHeaders = explode(",", System::getEnv('_APP_TRUSTED_HEADERS') ?? 'x-forwarded-for');
|
||||
|
||||
/**
|
||||
* @var array<Filter>
|
||||
*/
|
||||
|
||||
Reference in new issue
Block a user