# ¿Solucionando el error "BAD CSRF" en la configuración inicial del sitio?

**URL:** https://meta.discourse.org/t/troubleshooting-bad-csrf-error-on-initial-site-setup/97059
**Category:** Self-hosting
**Created:** [12 Septiembre, 2018 17:23 UTC](https://meta.discourse.org/t/troubleshooting-bad-csrf-error-on-initial-site-setup/97059 "2018-09-12T17:23:19Z")
**Posts on this page:** 1
**Showing post:** 13

<div class="post-metadata">

### Author: ![Falco](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/falco/32/179432_2.png) [@Falco](https://meta.discourse.org/u/Falco)
#### Post date: [12 Septiembre, 2018 21:27 UTC](https://meta.discourse.org/t/troubleshooting-bad-csrf-error-on-initial-site-setup/97059/13 "2018-09-12T21:27:31Z")

</div>

> [@Lee\_Ars](#):
>
> Is there an easy way to do that via config file editing? I can’t log into the new site yet—I can’t get past the initial admin user registration step.
> 
> ![](https://global.discourse-cdn.com/meta/original/3X/7/8/7870384b9c69ec5f2a8ba0387f6b99e48fd00746.jpeg) Stephen:

This should do it:

```plaintext
./launcher enter app
cd /var/www/discourse
rails c
SiteSetting.force_https = true

```

---

_[View the full topic](https://meta.discourse.org/t/troubleshooting-bad-csrf-error-on-initial-site-setup/97059)._
