Jump to content

Invalid CSRF Protection Token w/ Cloudflare Setup

Recommended Posts


I'm getting an error where if I have cloudflare proxying my domain. I get an "invalid CSRF Protection Token," error. Is there anyway to fix this? I searched around and couldn't find a whole ton. 


Any response is appreciated! 



Link to comment
Share on other sites

  • 2 weeks later...
  • WHMCS Support Manager

Hi @MichaelP,

This indicates that the visitor's IP address is not being forwarded to PHP by your webserver. You can resolve this at the application level by configuring the Trusted Proxy Settings.

For more information, please see: https://help.whmcs.com/m/troubleshooting/l/678268-troubleshooting-login-problems#proxy-or-cdn

Link to comment
Share on other sites

  • 2 weeks later...

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.

  • 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