VCF 3.9 – “Got bad CSRF token; invalid CSRF token”

The following is a known VCF 3.9 error that may appear on the SDDC Manager GUI:

“Got bad CSRF token; invalid CSRF token”

CSRFTOKEN1

As per the VCF 3.9 Release Notes:

The “Got bad CSRF token; invalid CSRF token” error message appears

The options of the csurf middleware are not configured properly. When you try to log in again after being logged out for almost two hours, the CSRF token error appears. This issue occurs because the old CSRF cookies have a conflict with the newly created session cookies.

Workaround: To reset cookies for the CSRF tokens, log out from the SDDC Dashboard and log in back again. 

VMware Cloud Foundation 3.9 Release Notes

 

CSRFTOKEN2CSRFTOKEN3CSRFTOKEN4

4 comments

  1. I just hit this after upgrading to VCF on VxRail 3.9.0, and thought that I was in BIG trouble 🙂 I had closed and relaunched the browser, but not actually logged out/in again. Thanks!

  2. Thank you for documenting and sharing this.
    I already ran in lots of different issues with vCF, but this one was new for me.

    Thanks, I was affraid that this was going to be a long troubleshooting issue.
    🙏

  3. Thank you for documenting and sharing this,

    I’ve ran into a lot different issues with vCF already, but this one was new for me.
    I was afraid that this was going to be a long troubleshooting case again.

    Thank god it’s not.
    Thanks 🙏

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s