Cleemzy
Web app only accessible via HTTPS
Hello everyone,
I have a web app in production and generated SSL certificates for it.
The problem is, I can only access the domain with https, which means if I only type “example.com” in the url, it doesn’t redirect to the https version and the site can’t be reached.
So if I want to access the website for the first time, I always have to manually type “https”. I notice that once accessed on that particular browser, I can finally type the domain name in the url normally without “https”.
It just bothers me because customers shouldn’t have to bother doing those steps.
I note that I have force_ssl: [hsts: true] in my endpoint config.
Thanks.
Most Liked Responses
hassanRsiddiqi
can you try in under config :backend, BackendWeb.Endpoint, to force_ssl: [rewrite_on: [:x_forwarded_proto]] in prod.exs
Popular in Questions
Other popular topics
Categories:
Sub Categories:
Forums
Popular Tags
- #ecto
- #liveview
- #troubleshooting
- #learning-elixir
- #deployment
- #library
- #erlang
- #testing
- #genserver
- #mix
- #absinthe
- #remote-other
- #otp
- #plug
- #how-to-question
- #macros
- #postgres
- #channels
- #elixirconf
- #exunit
- #discussion
- #javascript
- #podcasts
- #code-sync
- #onsite
- #dialyzer
- #docker
- #authentication
- #umbrella
- #full-time-contract
- #podcasts-by-brainlid
- #ecto-query
- #elixir-ls
- #phoenix_html
- #iex
- #blog-post
- #graphql
- #genstage
- #ai
- #websockets
- #supervisor
- #advent-of-code
- #elixirconf-us
- #distillery
- #processes
- #forms
- #api
- #metaprogramming
- #security
- #performance








