News for hackers. Stuff that matters.
Re:API Shouldn't Redirect HTTP to HTTPS by gbalduzzi on Wednesday May 29, 2024 @09:48AM (#40511982)
The point in the article is that APIs are used by developers, not end users.

Returning an error (and/or blocking the port entirely) allows the developer to understand he is using the wrong protocol and fix it.

In this scenario, the end user never actually performs an http request, because the protocol was fixed by the service developer.

There are no comments on this comment yet.