mxschmitt / golang-url-shortener

URL Shortener written in Golang using Bolt DB or Redis. Provides features such as Deletion, Expiration, OAuth and is of course Dockerizable.
https://so.sh0rt.cat
MIT License
283 stars 84 forks source link

Deletion url stays http when https base url is used. #131

Closed necrogami closed 5 years ago

necrogami commented 5 years ago

I have a domain https://lbb.io which is proxied through an nginx frontend to the golang server. The baseurl in the configuration is set to https however deletion url goes to http which makes the browser block it.

necrogami commented 5 years ago

Added X-Forwarded-Proto and solved this.