Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Jan 9, 2025
1 parent 6d4cf4f commit ac3b33f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions binderhub/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()

Expand Down

0 comments on commit ac3b33f

Please sign in to comment.