# CSRF token mismatch

**URL:** <https://discourse.cakephp.org/t/csrf-token-mismatch/4573>\
**Category:** Need Help\
**Created:** [July 15, 2018, 5:16am UTC](https://discourse.cakephp.org/t/csrf-token-mismatch/4573 "2018-07-15T05:16:35Z")\
**Posts on this page:** 1\
**Showing post:** 7

<div class="post-metadata">

**Author:** ![kani](https://yyz1.discourse-cdn.com/flex029/user_avatar/discourse.cakephp.org/kani/32/515_2.png) [@kani](https://discourse.cakephp.org/u/kani)\
**Post date:** [July 22, 2018, 7:19am UTC](https://discourse.cakephp.org/t/csrf-token-mismatch/4573/7 "2018-07-22T07:19:54Z")

</div>

Thanks for your reply.  
Yes. I removed Csrf component and upgraded Debug kit and Users plugin now it works good.  
I am building rest API. I configured CORS on middleware and it work good.

---

_[View the full topic](https://discourse.cakephp.org/t/csrf-token-mismatch/4573)._
