Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

XSRF Security Token Missing when saving user notification settings

henrik_gerdtsson August 31, 2021

We are running Bitbucket Server 7.6.2 behind nginx. Nginx is handling all the SSL stuff. We have been running this configuration for several years with different versions of Bitbucket Server and has never had any issues.

Just the other day a user found that when he saved the changes made on https://<bitbucket URL>/plugins/servlet/notification/settings he got XSRF Security Token Missing. I have tried as an administrator and as a normal user and get this every time I save the settings.

I found a KB on XSRF Security Token Missing, https://confluence.atlassian.com/bitbucketserverkb/xsrf-security-token-missing-779171343.html. I have looked through all 6 options. Option 2 could have been a problem as we had the secure=true in our configuration. But removing it changed nothing. We only see the problem with the above mentioned settings save.

Any ideas on what might be the problem and how to fix it?

Br
Henrik

1 answer

0 votes
Christian Glockner
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
August 31, 2021

Hi Henrik,

Do you have the server.proxy-name, server.scheme and server.proxy-port properties set in your bitbucket.properties file?

Cheers,

Christian

Premier Support Engineer

Atlassian

henrik_gerdtsson September 3, 2021

Hello Christian,

Yes I have. They are configured to the nginx-proxy.
server.secure=true
server.scheme=https
server.proxy-port=443
server.proxy-name=<bitbucket-url>

I have another Bitbucket server running apache where it works and the configuration in bitbucket.properties are the same.

Should I change anything?

Br
Henrik

Suggest an answer

Log in or Sign up to answer
TAGS
atlassian, compass, developer experience, devex, platform engineering, internal developer platform, component catalog, atlassian learning, productivity tools, developer productivity, software architecture, compass webinar, engineering teams

Discover how Compass drives DevEx and productivity at Atlassian 🏃🏻‍♂️

Learn why Compass was built to tackle dev experience at scale. See how Atlassian uses it to boost visibility, reduce cognitive load, and drive consistency—plus tips to get started and customize your IDP for stronger team engagement.

Join the webinar ✨
AUG Leaders

Atlassian Community Events