Is there any way to access cookies || localSorage from content script?
for example i have localStorage.shBox=’true’
and I want to access this from content script.. how can I make this?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
In order to access extension’s localStorage you need to send a request to your background page:
In script.js:
In background.html:
Cookies API is described in details here.