Revert "[#49574229] Use HTTPS only for HTTPS requests."

This reverts commit 11349c3d1d8f45cf018aa3d34de15fc94e3700af.
[#49574229] Authentication failure on the API controllers send down a 401 instead of redirecting.