I need to implement multi-use of the site in different browser tabs. After login, the browser writes the data in the cookies and if I open a new tab - I use the same profile, if I open a new tab and will be logged as user 2, I'm out of the user 1.
I know I can use chrome.webRequest to change the Headers, and the data about the current user stored in LocalStorage. But if I put it in LocalStorage user: user1 and the second tab will overwrite for user: user2, I will have the same result.
What are the options for solving my problem? I need to use this code to change the cookies? Someone did a similar task? There are examples?