# Solved: Bad CSRF when trying to use HTTPS

**URL:** <https://meta.discourse.org/t/solved-bad-csrf-when-trying-to-use-https/88116>\
**Category:** Self-hosting\
**Created:** [May 22, 2018, 9:53am UTC](https://meta.discourse.org/t/solved-bad-csrf-when-trying-to-use-https/88116 "2018-05-22T09:53:26Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![itsbhanusharma](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/itsbhanusharma/32/180717_2.png) [@itsbhanusharma](https://meta.discourse.org/u/itsbhanusharma)\
**Post date:** [May 22, 2018, 9:55am UTC](https://meta.discourse.org/t/solved-bad-csrf-when-trying-to-use-https/88116/2 "2018-05-22T09:55:51Z")

</div>

> [@Miguel\_David](#):
>
> - do NOT install [docker.io](http://docker.io) from the apt Ubuntu repositories as it is not supported
> - do NOT add cloudflare template to app.yml
> - remove the lines everybody is saying to add: `proxy_set_header X-Forwarded-Proto https;` or as per template `proxy_set_header X-Forwarded-Proto $thescheme;`

Those aren’t solutions! those are workarounds with lethal conclusions!  
Be prepared for rate limit lockouts! 😉

---

_[View the full topic](https://meta.discourse.org/t/solved-bad-csrf-when-trying-to-use-https/88116)._
