I have a server behind a load balancer. The LB translates out of https into http so the web server only sees http.
I have a perl script that uses CGI standard to generate an input form using
start_form( -action=>url())
Right now, the url in the HTML points to the http version of the url, not the https. What is the cleanest way to get it to always use https (if https is being used by the user)?
I've tried "-rewrite" as both 0 and 1 and that didn't make the difference.
X-Forwarded-Proto: httpsfor any of these solutions to use.