Web Security · Senior · Question 29 of 75

What is the backend-for-frontend (BFF) pattern for SPA authentication?

Explanation

Tokens never reach JavaScript, so XSS can't steal them. The BFF proxies API calls and adds the access token on the server side.

Further reading

Problem with a question

Web Security · Senior · question 29

Test yourself

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

Take this quiz