Respect X-Forwarded-* when redirecting to browser
Merge pull request #2807 from cleishm/browser-redirect-x-forwarded

Respect X-Forwarded-* when redirecting to browser