How to fix "Invalid CSRF token found in form body"?

I just updated SourceTree, tried to start it but have to log in to Atlassian. Tried logging in with Google+, get "Invalid CSRF token found in form body" error. How do I fix it?

7 answers

Someone else asked this same question around the same time: Sounds like an bug. You might see if you can find a report in, and if not, file one.

I´m having the same problem after an update. The setup asks for my Atlassian user id, and i get this message "Invalid CSRF token found in form body". I cannot finish the install, so i cant use SourceTree.

I´m having the same problem. I can´t use my Google+ account to finish instalation. I can't use SourceTree.

Looks like they tried to implement fixes for these in Anyone tried that yet?

nope, it didn't fixed. you could only bypass it by either refresh the page (which is internet explorer - if  you're in Windows), or just close it. then after the page done, never spent too much time fiddling with it, just login and let the launcher recognize your account.

Same here, pathetic

The update to version resolved for me. Now i can register the SourceTree using my google+ account.


I got the error "No CSRF token found in headers" during login via "Use an existing account" within version And therefor the app is not starting at all - SHIT.


Suggest an answer

Log in or Sign up to answer
Community showcase
Published Oct 23, 2018 in Sourcetree

Tip from the team: configure your repos for hosting goodness!

Supported Platforms macOS Windows We recently introduced support for additional hosting services such as GitHub Enterprise, GitLab (Cloud, Community Edition, Enterprise Edition), and...

1,115 views 4 2
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you