Your API Shouldn't Redirect HTTP to HTTPS
Background
When an user directs their web browser to an HTTP URL, it's a common practice for the service to redirect the
request to a corresponding HTTPS page. This unencrypted part of the communication flow has its flaws. Third
parties in shared networks, as well as network intermediaries, could
sniff
passwords and other secrets from the initial HTTP traffic
or even impersonate the web server with a MITM attack.
Nevertheless, redirection has been an useful first step in the transition from the ...
Read more at jviide.iki.fi