diff --git a/core/lib/Drupal/Core/Update/UpdateKernel.php b/core/lib/Drupal/Core/Update/UpdateKernel.php
index 80f243c..410d9f9 100644
--- a/core/lib/Drupal/Core/Update/UpdateKernel.php
+++ b/core/lib/Drupal/Core/Update/UpdateKernel.php
@@ -10,6 +10,7 @@
 use Drupal\Core\DrupalKernel;
 use Drupal\Core\Session\AnonymousUserSession;
 use Drupal\Core\Site\Settings;
+use Drupal\Core\StackMiddleware\ReverseProxyMiddleware;
 use Symfony\Cmf\Component\Routing\RouteObjectInterface;
 use Symfony\Component\HttpFoundation\ParameterBag;
 use Symfony\Component\HttpFoundation\Request;
@@ -64,6 +65,7 @@ public function handle(Request $request, $type = self::MASTER_REQUEST, $catch =
 
       // First boot up basic things, like loading the include files.
       $this->initializeSettings($request);
+      ReverseProxyMiddleware::setSettingsOnRequest($request, Settings::getInstance());
       $this->boot();
       $container = $this->getContainer();
       /** @var \Symfony\Component\HttpFoundation\RequestStack $request_stack */
