Discourse Meta
Troubleshooting "BAD CSRF" error on initial site setup?
Product Support
Self-hosting
Falco
(Falco)
September 12, 2018, 9:27pm
13
This should do it:
./launcher enter app cd /var/www/discourse rails c SiteSetting.force_https = true
Unknow error "BAD CSRF"
show post in topic
Related topics
Topic
Replies
Views
Activity
CSRF login error after upgrade to 2.5.0.beta4
Product Support
12
1827
June 9, 2020
Discourse Integration Nextcloud bad csrf
Self-hosting
2
1128
January 18, 2022
Avatar, Site Logos, and Cert Errors
Self-hosting
unsupported-install
61
6454
May 25, 2020
Set up Discourse on a server with existing Apache sites
Sysadmins
how-to
16
23565
September 18, 2020
Solved: Bad CSRF when trying to use HTTPS
Self-hosting
1
1298
May 22, 2018