API Design · Middle · Question 68 of 75

A browser SPA authenticates with cookies to its API. What extra protection is needed compared with bearer tokens?

Explanation

Browsers attach cookies automatically, even to requests triggered by other sites. Bearer tokens in headers aren't sent automatically.

Further reading

Problem with a question

API Design · Middle · question 68

Test yourself

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

Take this quiz