Obtain cookies of the page being visited
问题 I want to know how can we obtain the cookies of the current page being accessed using a communication link between the content script and background page. This is for an extension. 回答1: You can use Content Scripts to access document.cookie for each website you visit. Then you can use Message Passing to pass the cookies from your Content Script to your Background Page. There are many examples on Stack Overflow for example: Chrome Extension: how to capture selected text and send to a web