I know this question has been asked many times but frankly I have not seen an answer that satisfies the criteria I have.
So I have a ASP.NET WEB API that issues an access token (JWT) when user/pass are provided. At the moment requests are coming from an SPA application. The problem I have is storing the access token so it can be resent to the API from JavaScript. So far it looks like there are 2 commonly suggested options
- HTML5 Web Store
- Cookies
But none of these is actually secure since they are not protected from XSS and CSRF. And on top of that it makes token easily accessible.
Any options you would suggest ?