disable jupyter notebook check xsrf

disable jupyter notebook check `xsrf`
This commit is contained in:
Sam Chan 2022-08-04 16:26:34 +08:00 committed by GitHub
parent 2d5cfeec59
commit 25045391a8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -324,7 +324,7 @@ class Notebook_ModelView_Base():
workingDir = '/mnt/%s' % notebook.created_by.username
command = ["sh", "-c", "%s jupyter lab --notebook-dir=%s --ip=0.0.0.0 "
"--no-browser --allow-root --port=%s "
"--NotebookApp.token='' --NotebookApp.password='' "
"--NotebookApp.token='' --NotebookApp.password='' --ServerApp.disable_check_xsrf=True "
"--NotebookApp.allow_origin='*' "
"--NotebookApp.base_url=%s" % (pre_command,notebook.mount,port,rewrite_url)]