API Design · Junior · Question 32 of 75

Why must APIs be served only over HTTPS?

Explanation

Redirecting HTTP to HTTPS isn't enough for APIs: the first request already leaked credentials. Reject plain HTTP and use HSTS.

Further reading

Problem with a question

API Design · Junior · question 32

Test yourself

Take the API Design · Junior quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz