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

Hi, I’m stuck with this message “We cannot detect if your account was created, please ensure you have cookies enabled” whenever I try to register. I tried from different browser, different connections (wifi, 4g), from computer, smartphone…

If i try to register using an invitation link, I get a 403 error [“BAD CSRF”].

Except that everything is working, I can login using my admin account, create post etc.

I have a subfolder configuration, I’m using a reverse proxy from the main host to redirect every requests from /forum, my reverse proxy forward the IP address as excepted.

1 Like

Are you on an old version of Discourse?

It’s likely your proxy config is broken.

1 Like

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?

1 Like

You need

proxy_set_header X-Forwarded-Proto https;

4 Likes

Thanks, X-Forwarded-Proto resolved the issue :slight_smile:

3 Likes

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.