Compare commits

...
Author SHA1 Message Date
Chirag Aggarwal c7efbbd5f5 debug 2 2025-11-02 19:27:28 +05:30
Chirag Aggarwal 7ffb78eb5f add debug statement 2025-11-02 19:01:52 +05:30
2 changed files with 6 additions and 1 deletions
+2
View File
@@ -973,6 +973,8 @@ App::get('/v1/storage/buckets/:bucketId/files/:fileId/preview')
throw new Exception(Exception::GENERAL_SERVER_ERROR, 'Imagick extension is missing');
}
Console::info("cookie domain: " . Config::getParam('cookieDomain'));
/* @type Document $bucket */
$bucket = Authorization::skip(fn () => $dbForProject->getDocument('buckets', $bucketId));
+4 -1
View File
@@ -1008,7 +1008,10 @@ App::init()
$endDomain->getRegisterable() !== ''
);
$isLocalHost = $request->getHostname() === 'localhost' || $request->getHostname() === 'localhost:' . $request->getPort();
$isLocalHost =
$request->getHostname() === 'localhost' ||
$request->getHostname() === 'localhost:' . $request->getPort() ||
str_ends_with($request->getHostname(), '.localhost');
$isIpAddress = filter_var($request->getHostname(), FILTER_VALIDATE_IP) !== false;
$isConsoleProject = $project->getAttribute('$id', '') === 'console';