For example, 8082 has the corresponding https port 2443, 8083 has the https port 3443 and so on.
In production, when the user clicks an https link on an http page, Apache forwards to the right page but returns 302 (permanently moved). I could inspect the Location header containing the URL such as https:// ... /blah from jQuery, however the $.ajax call calls the error handler and xhr.getAllResponseHeaders() returns nothing.
Basically, I need the https port in order to set up the <iframe> for cross-origin communication in development environments.
Any ideas will be appreciated.