DeepFrontend
Learning Paths
Practice
System Design & DS
Design Studio
Data Structures Curriculum
Real-World Case Studies
Careers
Job Board
Resume Builder
Blog
Sign in
Search
⌘K
Go Pro
Loading compiler resources...
Backend for Frontend (BFF) Quiz Practice
Active Recall Drill Session
← Exit Session
Question 1 of 1
medium
Backend for Frontend (BFF)
How does the BFF Token Handler pattern protect JWT access tokens from browser XSS attacks?
A
By encrypting local storage using private keys
B
By storing tokens server-side in the BFF and issuing an opaque, secure, HttpOnly cookie to the browser instead of exposing raw tokens to JavaScript
C
By converting JWT tokens into cookies at compile time
D
By disabling browser Javascript execution
Check Answer