Trying to develop a simple Firefox extension. The extension takes a particular website and embeds the page in a predefined spot in another webpage. So two different domains, not related to each other at all. I understand that the same origin policy does not apply to browser extensions, and I looked through other stackoverflow questions such as this one as well as here.
My issue is I've added the permissions tag in my manifest.json file, like so:
"permissions": ["*://www.abcwebsite.com/*"]
Where abcwebsite.com is the website I'm trying to embed. I also added both websites to the "matches" tag within content_scripts.
However, I'm still unable to access the DOM structure of the embedded website.
I can embed the entire website just fine, but I'm trying to only embed a specific part of the page. I'm not sure where I'm going wrong,