Cannot get rid of 403 csrf verification failed on 11.0.6

for me as a workaround a had to set in my nginx config

location @proxy {
proxy_pass http://seafile;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Host $server_name;
proxy_set_header Origin ‘https://server.example.com’;
proxy_set_header Host $http_host;
}

otherwise the Origin send from nginx to django was null

if anyone has a tipp why nginx sends null as origin, help is appreciated.