Error "We cannot detect if your account was created, please ensure you have cookies enabled"

I’m using the latest version (2.4.0.beta9) and my nginx configuration is:

location /forum {
    expires 1m;
    add_header Cache-Control "public";

    proxy_set_header X-Real-IP $remote_addr;
    proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
    proxy_set_header Host $http_host;
    proxy_set_header X-NginX-Proxy true;

    resolver 127.0.0.11;
    set $forum "http://xxxxxx";
    proxy_pass $forum;
    proxy_intercept_errors on;

    proxy_redirect off;
    
    proxy_http_version 1.1;
    proxy_set_header Upgrade $http_upgrade;
    proxy_set_header Connection "upgrade";
}

Why is everything working except user registration if it’s a proxy config problem?