When applying a new license key to Confluence, I get an error XSRF check failed

Platform Notice: Data Center Only - This article only applies to Atlassian products on the Data Center platform.

Note that this KB was created for the Data Center version of the product. Data Center KBs for non-Data-Center-specific features may also work for Server versions of the product, however they have not been tested. Support for Server* products ended on February 15th 2024. If you are running a Server product, you can visit the Atlassian Server end of support announcement to review your migration options.

*Except Fisheye and Crucible

Summary

XSRF check failed error message appears when updating the license in Confluence

Environment

  • Confluence Server and Data Center

Diagnosis

When applying a new License to Confluence, we get the error as below:

(Auto-migrated image: description temporarily unavailable)

Cause

The most common cause is that the Server Base URL is not matching the one you are using to access Confluence.

Solution

  1. Please make sure that you have the same Base URL you are using to access your instance;

    1. This is the most common issue.

  2. Something might not be correctly configured in your proxy if you are using any. For further reference, please check this document:

  3. We might want to disable temporarily the XSRF check on Confluence as mentioned in this document - Configuring XSRF protection

  4. We might want to bypass the proxy if you have any and access Confluence directly to manually update it;

  5. We, of course, can always have the ability to change the license manually through the confluence.cfg.xml file:

Updated on March 17, 2025

Still need help?

The Atlassian Community is here for you.