Skip to content

Commit 7a9d4ba

Browse files
committed
make sure xsrf token is in page template
1 parent 61f690c commit 7a9d4ba

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

binderhub/base.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,7 @@ def template_namespace(self):
142142
static_url=self.static_url,
143143
banner=self.settings["banner_message"],
144144
auth_enabled=self.settings["auth_enabled"],
145+
xsrf=self.xsrf_token.decode("ascii"),
145146
)
146147
if self.settings["auth_enabled"]:
147148
ns["api_token"] = self.hub_auth.get_token(self) or ""

0 commit comments

Comments
 (0)