Adding TLS/SSL support to your Perl web application could cause a headache if it's not embedded in your web server. The most popular solution is to use an ssl tunnel in front of your server that transparantly encrypts/decrypts messages. In order to tell Plack application that TLS/SSL tunnel is used at least two special HTTP headers X-Forwarded-For and X-Forwarded-Proto must be set. The problem is