Skip to content

Commit

Permalink
Replace check_origin local change with check_referer
Browse files Browse the repository at this point in the history
  • Loading branch information
gogasca committed Jan 9, 2025
1 parent 4d98406 commit 5f997e3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion jupyter_server/base/handlers.py
Original file line number Diff line number Diff line change
Expand Up @@ -535,7 +535,7 @@ def check_xsrf_cookie(self) -> None:
# Servers without authentication are vulnerable to XSRF
return None
try:
if not self.check_origin():
if not self.check_referer():
raise web.HTTPError(404)
return super().check_xsrf_cookie()
except web.HTTPError as e:
Expand Down

0 comments on commit 5f997e3

Please sign in to comment.