Skip to content

Commit

Permalink
Update binderhub/base.py
Browse files Browse the repository at this point in the history
Co-authored-by: Min RK <[email protected]>
  • Loading branch information
agoose77 and minrk authored Jan 15, 2025
1 parent ac3b33f commit f398f88
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion binderhub/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ class VersionHandler(BaseHandler):
# (e.g. mybinder.org federation when blocking cloud datacenters)
skip_check_request_ip = True

def set_default_headers():
def set_default_headers(self):
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", "*")
Expand Down

0 comments on commit f398f88

Please sign in to comment.