Re:API Shouldn't Redirect HTTP to HTTPS
by rocqua on Wednesday May 29, 2024 @12:33AM
(#40508502)
That was OPs point. Not listening on port 80 won't help against an active MitM.
[ Parent
| on HN ]
But listening on port 80 and revoking the key also won’t help either as the active MitM would have been smart enough to internally proxy to port 443 or return some other fake response.
The real point is to break the application during development before the first MitM. Either approach does that equally well.