Well, that's just the old solution, which has the issue of having to switch to HTTP.

Some solutions work using redirects rather than header injection, which is cleaner and allows HTTPS but has worse performance  :)