We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 41a95ee + f398f88 commit 65f807cCopy full SHA for 65f807c
binderhub/base.py
@@ -216,6 +216,13 @@ class VersionHandler(BaseHandler):
216
# (e.g. mybinder.org federation when blocking cloud datacenters)
217
skip_check_request_ip = True
218
219
+ def set_default_headers(self):
220
+ if "Access-Control-Allow-Origin" not in self.settings.get("headers", {}):
221
+ # allow CORS requests to this endpoint by default
222
+ self.set_header("Access-Control-Allow-Origin", "*")
223
+
224
+ super().set_default_headers()
225
226
async def get(self):
227
self.set_header("Content-type", "application/json")
228
r = {
0 commit comments