Web Security · Middle · Question 29 of 75

An app authenticates API calls with an Authorization: Bearer header taken from memory, not cookies. Is CSRF a concern?

Explanation

CSRF needs ambient credentials. The trade-off is that the token is reachable by JavaScript, so XSS becomes the bigger risk.

Further reading

Problem with a question

Web Security · Middle · question 29

Test yourself

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

Take this quiz