D
D
denbur2014-02-13 21:15:15
Google Chrome
denbur, 2014-02-13 21:15:15

Is it possible to send information from a website to chrome ext?

There is an internal site with some information in the database (more precisely, it is even a server API and a client for it). And there is an extension for chrome, which in theory will show the information received from the server. But to work with the server, you need to log in and get a token. Is it possible to somehow pass this token (for example, at the time of login) from the client application (JS) to the extension so that it can use it?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
N
Nikolai Vasilchuk, 2014-02-13
@Anonym

It's not entirely clear what you need.
If you log in to the site (you will have an active session there), then when you access the add-on to the site, you will still be logged in.

F
fart, 2014-02-14
@fart

Through a cross domain request, take the token from the client to the extension and let it store in localstorage or session storage

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question