# How do I fix this Kernel Error - XSRF cookie does not match POST argument

**URL:** <https://discourse.jupyter.org/t/how-do-i-fix-this-kernel-error-xsrf-cookie-does-not-match-post-argument/2551>\
**Category:** General\
**Created:** [October 29, 2019, 7:44am UTC](https://discourse.jupyter.org/t/how-do-i-fix-this-kernel-error-xsrf-cookie-does-not-match-post-argument/2551 "2019-10-29T07:44:05Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![bpburrow](https://avatars.discourse-cdn.com/v4/letter/b/3e96dc/32.png) [@bpburrow](https://discourse.jupyter.org/u/bpburrow)\
**Post date:** [October 29, 2019, 7:44am UTC](https://discourse.jupyter.org/t/how-do-i-fix-this-kernel-error-xsrf-cookie-does-not-match-post-argument/2551/1 "2019-10-29T07:44:05Z")

</div>

Hello All,

I’m brand new to programming, taking my first course online in Python. I’ve barely started the course and I’m already struggling. My course is through Microsoft, so I’m using Azure Notebooks, powered by Jupyter. Everything seemed to be fine until I logged in today and received a Kernel Error - XSRF cookie does not match POST argument. I’ve tried restarting the kernel, clearing output, switching between Python 3.6, Python 2, and back to Python 3, all with no luck. Any help would be much appreciated.

v/r,  
Brian

---

<div class="post-metadata">

**Author:** ![fomightez](https://yyz1.discourse-cdn.com/flex031/user_avatar/discourse.jupyter.org/fomightez/32/495_2.png) [@fomightez](https://discourse.jupyter.org/u/fomightez)\
**Post date:** [October 29, 2019, 3:10pm UTC](https://discourse.jupyter.org/t/how-do-i-fix-this-kernel-error-xsrf-cookie-does-not-match-post-argument/2551/2 "2019-10-29T15:10:44Z")

</div>

Hi Brian,  
Did you try any of the other suggestions [here](https://github.com/Microsoft/AzureNotebooks/issues/465), which also points at [this page](https://github.com/Microsoft/AzureNotebooks/issues/448)? It looks like it happens to folks from time to time using Azure. Hopefully clearing cookies, logging out and back in gets you back to where you can use your notebooks.  
Good luck with the learning.

---

<div class="post-metadata">

**Author:** ![bpburrow](https://avatars.discourse-cdn.com/v4/letter/b/3e96dc/32.png) [@bpburrow](https://discourse.jupyter.org/u/bpburrow)\
**Post date:** [October 30, 2019, 3:09am UTC](https://discourse.jupyter.org/t/how-do-i-fix-this-kernel-error-xsrf-cookie-does-not-match-post-argument/2551/3 "2019-10-30T03:09:18Z")

</div>

Thanks for the assist. Clearing cookies and logging in back in did the trick. I’ll be sure to share with the other students experiencing the same frustration. Thank you.

---

<div class="post-metadata">

**Author:** ![kurmasz](https://yyz1.discourse-cdn.com/flex031/user_avatar/discourse.jupyter.org/kurmasz/32/10948_2.png) [@kurmasz](https://discourse.jupyter.org/u/kurmasz)\
**Post date:** [September 6, 2023, 10:59am UTC](https://discourse.jupyter.org/t/how-do-i-fix-this-kernel-error-xsrf-cookie-does-not-match-post-argument/2551/4 "2023-09-06T10:59:28Z")

</div>

My students and I are getting a lot of these errors. The links above are now dead. Can anybody provide updated links?
