Jump to content
Sign in to follow this  

Invalid CSRF Protection Token

Recommended Posts

What is the for this error when trying to submit a config?  Invalid CSRF Protection Token

Share this post

Link to post
Share on other sites

Hi @Nova,

An "Invalid CSRF Protection Token" could be caused by a few things:

  • You logged out in another tab,
  • Your login session expired since the page was loaded,
  • Your connection's IP address has changed since the page was loaded,
  • A PHP Session misconfiguration on the server
  • A misconfiguration of your proxy/WAF/CDN is causing the IP provided to PHP to change frequently

If it wasn't triggered by the first three operator actions:

Start by reviewing the Configuration > System Health page for any PHP Session configuration warnings, and address those.

If your website is behind a proxy, make sure it's properly configured to pass the visitors IP address consistently through to PHP scripts. 

If you can temporarily disable the Proxy/WAF/CDN on your website, you can configure the Trusted Proxy Settings at the script level, telling WHMCS to expect your proxy. This is discussed in depth here: https://docs.whmcs.com/Trusted_Proxy_Settings


Share this post

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated