Skip to content

Commit d5145ab

Browse files
committed
Enable XSRF checks on server side
1 parent bd949ff commit d5145ab

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/main/server.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,9 +74,10 @@ class JupyterServer {
7474
this._nbServer = execFile(this._info.environment.path, [
7575
'-m', 'jupyterlab',
7676
'--no-browser',
77+
// do not use any config file
7778
'--JupyterApp.config_file_name', '',
79+
// use our token rather than any pre-configured password
7880
'--ServerApp.password', '',
79-
'--ServerApp.disable_check_xsrf', 'True',
8081
'--ServerApp.allow_origin', '*'
8182
], {
8283
cwd: home,

0 commit comments

Comments
 (0)