Greetings,
I
am using Angular 7 with angular material for my client application that
connects and obtains Access token from IRIS Authorization Server to access REST
APIs that reside on the resource server with delegated authority. The only
problem that I am facing right now is exposing the important information such
as JWT (encoded Access token) token information which stores in the browser’s
local storage and not secure to handle XSS Attacks.
Right now, I am having hard time finding an alternative but secure option to store access token on the server side (client WEB SERVER) instead of browser’s local storage to make my client application any less vulnerable to XSS attacks as Local storage is designed to be accessible by JavaScript, so it doesn't provide any XSS protection.
There are some good suggestions that I have googled including the following with some pros and cons.
indexedDB solution
which also has some caveats Please let me know if anyone has implemented a better and secure way of storing token information on the server side (Client Web server) and incorporated the information in client application to send token inside the HTTP (Header) request for consuming REST APIs