From a7d8a8eaeee0ea3ccbc17acf48b6e6283585629b Mon Sep 17 00:00:00 2001 From: eldadfux Date: Thu, 10 Oct 2019 22:47:43 +0300 Subject: [PATCH] whitelisted localhost for appwrite console by default --- app/config/collections.php | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/app/config/collections.php b/app/config/collections.php index 122b722f90..da563f3e25 100644 --- a/app/config/collections.php +++ b/app/config/collections.php @@ -38,12 +38,24 @@ $collections = [ '$collection' => Database::SYSTEM_COLLECTION_PLATFORMS, 'name' => 'Localhost (SSL)', 'type' => 'web', - 'url' => 'https://'.$request->getServer('HTTP_HOST'), + 'url' => 'https://localhost', ], [ '$collection' => Database::SYSTEM_COLLECTION_PLATFORMS, 'name' => 'Localhost (Non-SSL)', 'type' => 'web', + 'url' => 'http://localhost', + ], + [ + '$collection' => Database::SYSTEM_COLLECTION_PLATFORMS, + 'name' => 'Current Host (SSL)', + 'type' => 'web', + 'url' => 'https://'.$request->getServer('HTTP_HOST'), + ], + [ + '$collection' => Database::SYSTEM_COLLECTION_PLATFORMS, + 'name' => 'Current Host (Non-SSL)', + 'type' => 'web', 'url' => 'http://'.$request->getServer('HTTP_HOST'), ], ],