# Proper way to enforce https only?

**URL:** <https://forum.elixirforum.com/t/proper-way-to-enforce-https-only/2117>\
**Category:** Questions\
**Tags:** phoenix, https\
**Created:** [October 25, 2016, 8:11pm UTC](https://forum.elixirforum.com/t/proper-way-to-enforce-https-only/2117 "2016-10-25T20:11:08Z")\
**Posts on this page:** 1\
**Showing post:** 11

<div class="post-metadata">

**Author:** ![pshoukry](https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/pshoukry/32/14596_2.png) [@pshoukry](https://forum.elixirforum.com/u/pshoukry)\
**Post date:** [September 6, 2017, 5:16pm UTC](https://forum.elixirforum.com/t/proper-way-to-enforce-https-only/2117/11 "2017-09-06T17:16:06Z")

</div>

> force\_ssl: [hsts: true, host: nil]

Solved it for me.

---

_[View the full topic](https://forum.elixirforum.com/t/proper-way-to-enforce-https-only/2117)._
