Make sure the Base URL is the same as the URL you're using.
I had the same problem with a freshly installed Confluence 6.0.4 when I tried to apply the license. I started off by using the internal Tomcat webserver on port 8090. I then installed Apache with mod_proxy and was using the confluence.example.com, but hadn't updated the Base URL.
The XSRF failure disappeared as soon as I updated the Base URL.
you could try to temporary diable XSRF Token: https://confluence.atlassian.com/bamboo/configuring-xsrf-protection-427624344.html
But usually you should be able to update license with a valid session / token. Did you try to log out and log in again?
Hope this helps.
More and more people are building their careers with Atlassian, and we want you to be at the front of this wave! Important Dates Start the Certification Prep Course by 2 April 2019 Take your e...
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!
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