From ac3b33f6d17da63b7b5ff5e7e02953b5057d3345 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Thu, 9 Jan 2025 15:55:38 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- binderhub/base.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/binderhub/base.py b/binderhub/base.py index f7e15d910..7c5bd11c5 100644 --- a/binderhub/base.py +++ b/binderhub/base.py @@ -217,9 +217,9 @@ class VersionHandler(BaseHandler): skip_check_request_ip = True def set_default_headers(): - if 'Access-Control-Allow-Origin' not in self.settings.get("headers", {}): + if "Access-Control-Allow-Origin" not in self.settings.get("headers", {}): # allow CORS requests to this endpoint by default - self.set_header('Access-Control-Allow-Origin', '*') + self.set_header("Access-Control-Allow-Origin", "*") super().set_default_headers()