'_xsrf' argument missing from POST Cannot connect to remote Jupyter server
See original GitHub issueIssue Type: Bug
An instance of Jupyter Labs works without issue from the same computer. However, with VS Code I get Invalid response: 403 Forbidden
.
This only started happening recently after a VS Code update. I have not updated Jupyter.
The Jupyter Server terminal shows (only when trying to connect from VS Code):
[W 2021-08-12 21:06:16.694 ServerApp] Forbidden
[W 2021-08-12 21:06:16.695 ServerApp] 403 GET /api/sessions?1628802376650 (10.23
[W 2021-08-12 21:06:16.696 ServerApp] 403 POST /api/sessions?1628802376654 (10.2
[W 2021-08-12 21:06:16.696 ServerApp] '_xsrf' argument missing from POST
Extension version: 2021.8.1195043623 VS Code version: Code 1.59.0 (379476f0e13988d90fab105c5c19e7abc8b1dea8, 2021-08-04T23:13:12.822Z) OS version: Windows_NT x64 10.0.14393 Restricted Mode: No
System Info
Item | Value |
---|---|
CPUs | Intel® Xeon® CPU E5-2676 v3 @ 2.40GHz (2 x 2400) |
GPU Status | 2d_canvas: unavailable_software gpu_compositing: disabled_software multiple_raster_threads: disabled_off oop_rasterization: disabled_off opengl: disabled_off rasterization: disabled_software skia_renderer: enabled_on video_decode: disabled_software vulkan: disabled_off webgl: unavailable_software webgl2: unavailable_software |
Load (avg) | undefined |
Memory (System) | 8.00GB (1.16GB free) |
Process Argv | –crash-reporter-id 1e88d7ed-dfc2-42ed-b5d3-970568cb872e |
Screen Reader | no |
VM | 0% |
A/B Experiments
vsliv368:30146709
vsreu685:30147344
python383cf:30185419
pythonvspyt700cf:30270857
pythonvspyt602:30300191
vspor879:30202332
vspor708:30202333
vspor363:30204092
vswsl492cf:30256860
vstes516:30244333
pythonvspyt639:30300192
pythontb:30283811
pythonptprofiler:30281270
vshan820:30294714
vstes263:30335439
pythondataviewer:30285071
pythonvsuse255:30340121
vscod805cf:30301675
pythonvspyt200:30340761
vscextlangct:30333562
binariesv615:30325510
pythonvssor306:30344512
bridge0708:30335490
vstre464cf:30350173
bridge0723cf:30351748
Issue Analytics
- State:
- Created 2 years ago
- Comments:15 (5 by maintainers)
Top Results From Across the Web
Jupyter Notebook not saving: '_xsrf' argument missing from post
So I access it by typing 'jupyter notebook' in the windows command line. ... server doesn't have authentication, it is vulnerable to XSRF....
Read more >Jupyter fails with '_xsrf' argument missing from POST : PY-26089
start jupyter-notebook from PyCharm; restart it with "Rerun" button in the Run tool window; try to execute some cell.
Read more >Solved | '_xsrf' argument missing from POST - YouTube
... go over two methods to solve '_xsrf' argument missing from POST which makes it so you cannot save your Jupyter Notebook. Did...
Read more >Jupyter Notebook not saving: '_xsrf' argument missing from post
The solution I came across seems too simple but it worked. Go to the /tree aka Jupyter home page and refresh the browser....
Read more >Security in the Jupyter notebook server - Read the Docs
When token authentication is enabled, the notebook uses a token to authenticate requests. This token can be provided to login to the notebook...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@clayms Please could you start juyter with the following CLI arg
--allow_remote_access=true
, that works for me.Same issue here, but I have solved this issue by changing my custom jupyter configure, which has been discussed in https://github.com/nteract/hydrogen/issues/922#issuecomment-315665849