From 56b18aab91da5bcc98b2f1f2c00d5099037515f1 Mon Sep 17 00:00:00 2001
From: Anastasiia Sliusar <anastasiia.sliusar@gmail.com>
Date: Mon, 12 Aug 2024 12:42:00 +0200
Subject: [PATCH] Remove custom page config handler

---
 jupyter_server/serverapp.py | 7 -------
 1 file changed, 7 deletions(-)

diff --git a/jupyter_server/serverapp.py b/jupyter_server/serverapp.py
index e781a7386..f257d1149 100644
--- a/jupyter_server/serverapp.py
+++ b/jupyter_server/serverapp.py
@@ -401,8 +401,6 @@ def init_settings(
             # collapse $HOME to ~
             root_dir = "~" + root_dir[len(home) :]
 
-        self.allow_insecure_kernelspec_params = jupyter_app.allow_insecure_kernelspec_params
-
         settings = {
             # basics
             "log_function": log_request,
@@ -462,7 +460,6 @@ def init_settings(
             "server_root_dir": root_dir,
             "jinja2_env": env,
             "serverapp": jupyter_app,
-            "page_config_hook": (self.page_config_hook),
         }
 
         # allow custom overrides for the tornado web app.
@@ -473,10 +470,6 @@ def init_settings(
             settings["xsrf_cookie_kwargs"] = {"path": base_url}
         return settings
 
-    def page_config_hook(self, handler, page_config):
-        page_config["allow_insecure_kernelspec_params"] = self.allow_insecure_kernelspec_params
-        return page_config
-
     def init_handlers(self, default_services, settings):
         """Load the (URL pattern, handler) tuples for each component."""
         # Order matters. The first handler to match the URL will handle the request.