Skip to content

Commit 5f997e3

Browse files
committed
Replace check_origin local change with check_referer
1 parent 4d98406 commit 5f997e3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

jupyter_server/base/handlers.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -535,7 +535,7 @@ def check_xsrf_cookie(self) -> None:
535535
# Servers without authentication are vulnerable to XSRF
536536
return None
537537
try:
538-
if not self.check_origin():
538+
if not self.check_referer():
539539
raise web.HTTPError(404)
540540
return super().check_xsrf_cookie()
541541
except web.HTTPError as e:

0 commit comments

Comments
 (0)