Sending data to your site from your Chrome Extension
Jan 16, 2016
How to open a new tab with a specific address from your Chrome extension is well documented in Google’s help articles. For completeness sake, let us start with discussing this. Before we create a new tab, we should add permissions for accessing “chrome.tabs” in your manifest.json.
Now we are ready to open a new tab. We need to do this from your background.js script. In the following example, we open a new tab when the page action button is clicked. If your extenstion does not use a page action, you could modify it to be used with a button click or some other event. Notice the question mark at the end of the URL. Of course, there should be a global variable named data which contains the get parameters.
Get is easy, Post is a little more complicated.