News for hackers. Stuff that matters.
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.
Re:API Shouldn't Redirect HTTP to HTTPS by zeroimpl on Wednesday May 29, 2024 @08:37AM (#40511294)
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.