Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

XSRF check failed when adding tags or viewing commits




I have installed Jira and Bitbucket on my teams servers, however whenever I try to add a tag or view the commits in a repository or even import from github, I get a 403 "XSRF check failed" error.


c.a.p.r.c.s.j.c.s.j.XsrfResourceFilter Additional XSRF checks failed for request...


Here is my Nginx config

server {
listen 443 ssl http2;
listen [::]:443 ssl http2;


ssl_certificate /etc/letsencrypt/live/;
ssl_certificate_key /etc/letsencrypt/live/;
ssl_trusted_certificate /etc/letsencrypt/live/;
ssl_session_timeout 5m;
ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
ssl_ciphers HIGH:!aNULL:!MD5;
ssl_prefer_server_ciphers on;

location / {
proxy_set_header X-Forwarded-Host $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_http_version 1.1;
proxy_cache_bypass $http_upgrade;
proxy_cache_convert_head off;
proxy_cache_key $scheme$request_method$proxy_host$request_uri;

proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header X-Forwarded-Port $server_port;
client_max_body_size 0;

server {
listen 80;
listen [::]:80;


location / {
return 301$request_uri;

client_max_body_size 0;

Here is my file

#> Migrated to database at jdbc:postgresql://ip:5432/bitbucket?targetServerType=master
#> Updated on 2020-09-07T14:02:08.739+02:00

The Base URL is:

If I were to change it to https, it says Base URL mismatch


Add Info:
I can access the server directly and I have no problems, so its the proxying.

I also can't use HTTP as its an HSTS server

0 answers

Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Bitbucket

New improvements to user management in Bitbucket Cloud 👥

Hey Community! We’re willing to wager that quite a few of you not only use Bitbucket, but administer it too. Our team is excited to share that we’ll be releasing improvements throughout this month of...

3,741 views 10 16
Read article

Community Events

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

Find an event

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

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you