by Moneysac · 3y ago · 0 comments
What I am trying to say here is that JWTs used in single page applications are dangerous because you have no layer of protection against XSS attacks.
Who says you _have_ to? You could set a jwt as an httponly cookie and use it to exclusively validate API requests in your backend.