Users are experiencing a Facebook login error with a CSRF detection issue on Discourse, likely due to proxy configuration. joshm reports the error occurs when using Cloudflare with flexible SSL and no server certificate. Ivan_Rapekas explains that the issue may stem from incorrect X-Forwarded-Proto header settings in Nginx. Initially, changing the header to $scheme resolved the issue, but later clarification shows that setting it to "https" is correct when behind a proxy. The solution is linked to a related Discourse thread on proxy configuration, particularly regarding HTTPS enforcement and authentication with services like Google and Office365. Ivan_Rapekas corrects a typo in his earlier post, emphasizing the proper syntax for the header.
I’m using Cloudflare in front of nginx. I’m using Cloudflare automatic SSL (flexible). I didn’t install any certificate on my server (i.e. I’m not using Letsencrypt).
Is this related to Cloudflare? Can this be solved without installing Letsencrypt?