Golang, Heroku - How to check if request is https
1 answer
Looking at Heroku documentation it looks like HTTPS terminates above your application.
Check request Headers
for header X-Forwarded-Proto
with value https
.
+6
source to share