A single-page application stores the user's JWT in localStorage. What is the PRIMARY security risk?
-
A
The JWT will expire too quickly
-
B
Any XSS attack can read and exfiltrate the token
-
C
The token cannot be sent with CORS requests
-
D
LocalStorage is cleared on every browser restart