# Cannot solve this error: CSRF token error. Try to refresh the page and try again

**URL:** <https://forum.mautic.org/t/cannot-solve-this-error-csrf-token-error-try-to-refresh-the-page-and-try-again/21342>\
**Category:** Mautic 4 Install/Upgrade Support\
**Created:** [October 21, 2021, 10:20am UTC](https://forum.mautic.org/t/cannot-solve-this-error-csrf-token-error-try-to-refresh-the-page-and-try-again/21342 "2021-10-21T10:20:56Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![jeroenverschoor](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/jeroenverschoor/32/5772_2.png) [@jeroenverschoor](https://forum.mautic.org/u/jeroenverschoor)\
**Post date:** [October 21, 2021, 10:20am UTC](https://forum.mautic.org/t/cannot-solve-this-error-csrf-token-error-try-to-refresh-the-page-and-try-again/21342/1 "2021-10-21T10:20:56Z")

</div>

**My software**  
My Mautic version is: 4.0.1  
My PHP version is: 7.4.23  
My Database type and version is: 5.5.68-MariaDB

I’ve read all discussions about this error on this forum and also on other forums around. But still cannot solve this issue:

- every time I login into Mautic all stylesheets does not seem to load. A refresh solves this problem after which Mautic is neatly displayed
- every time I visit content\>email the error ’ CSRF token error. Try to refresh the page and try again’ is shown about 6 times. error messages disappear after which everything seems to work fine.
- Often changes made in the builder are not saved and I lose all my adjustments. The buttons ‘builder’, ‘apply’ (etc.) are then inactive/not clickable.

I do now copy/paste all changes into standard notebook app (from Windows) and apply/save every change I make (close builder, save email content, open builder, etc.). This takes a lot of time.

Anyone else having this issues and know how to solve this?

---

<div class="post-metadata">

**Author:** ![joeyk](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/joeyk/32/11164_2.png) [@joeyk](https://forum.mautic.org/u/joeyk)\
**Post date:** [October 21, 2021, 6:09pm UTC](https://forum.mautic.org/t/cannot-solve-this-error-csrf-token-error-try-to-refresh-the-page-and-try-again/21342/2 "2021-10-21T18:09:42Z")

</div>

Hi, this is not easy to troubleshoot without actually diving in.  
Do you have SSL enabled?

---

<div class="post-metadata">

**Author:** ![jeroenverschoor](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/jeroenverschoor/32/5772_2.png) [@jeroenverschoor](https://forum.mautic.org/u/jeroenverschoor)\
**Post date:** [October 22, 2021, 9:17am UTC](https://forum.mautic.org/t/cannot-solve-this-error-csrf-token-error-try-to-refresh-the-page-and-try-again/21342/3 "2021-10-22T09:17:49Z")

</div>

Thank you for your reply.  
SSL is enabled (forced) indeed.

---

<div class="post-metadata">

**Author:** ![mauticjoker](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/mauticjoker/32/433_2.png) [@mauticjoker](https://forum.mautic.org/u/mauticjoker)\
**Post date:** [November 25, 2021, 4:35am UTC](https://forum.mautic.org/t/cannot-solve-this-error-csrf-token-error-try-to-refresh-the-page-and-try-again/21342/4 "2021-11-25T04:35:04Z")

</div>

i HAVE THE SAME PROBLEM IN LAST MAUTIC 4 VERSION

---

<div class="post-metadata">

**Author:** ![amgomez06](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/amgomez06/32/6821_2.png) [@amgomez06](https://forum.mautic.org/u/amgomez06)\
**Post date:** [March 2, 2022, 6:45pm UTC](https://forum.mautic.org/t/cannot-solve-this-error-csrf-token-error-try-to-refresh-the-page-and-try-again/21342/5 "2022-03-02T18:45:08Z")

</div>

I have same problem, version mautic 4.1.1.

---

<div class="post-metadata">

**Author:** ![mneumann](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/mneumann/32/2512_2.png) [@mneumann](https://forum.mautic.org/u/mneumann)\
**Post date:** [March 2, 2022, 10:03pm UTC](https://forum.mautic.org/t/cannot-solve-this-error-csrf-token-error-try-to-refresh-the-page-and-try-again/21342/6 "2022-03-02T22:03:43Z")

</div>

I have for long time already CSRF token errors, when I log in to Mautic after a timeout. What I need to do is to go to the login URL, and logging in from there is resolving the problem. But this is something that happened to me already long before Mautic 4.
