I made a browser extension:
- reloads the page.
- open another tab from the same host and close it automatically.
- switch tabs to be active automatically (every 2 minutes one of these sites becomes active).
those work, but they had bad user experience. Reloading the page might lose work.
I tried making requests on the background but these websites use many confusing headers and cookies.
Is there a better way to stop logging off due to inactivity or a proper way to figure out which headers and cookies should I attach?
I don't know which stack these websites use, but they have high security standards.