Creating a chrome extension involves the content script sending a message to the background script.
chrome.runtime.sendMessage({greeting: "hello"}, function(response) {
console.log(response.farewell);
});
Upon receiving this message, background.js retrieves the sender information which includes
{ ID, tab, url }
The goal is to confirm that the message originated from the content script within the same extension and not any other source.
How can the sender ID be verified and how can background.js access the extension ID?