Hello, I’m new to firefox add-ons.
I’m currently thinking of transferring data from content-script to a server and I have a few questions regarding this.
Is it possible? (I have tried transferring data from background script to a server via websocket so I’m guessing that sending data from content-script is possible, too…)
Is there any useful documents to learn how to do this?
This article explains content scripts and their limitations:
I believe you can use XHR from a content script, but it will be limited by cross-domain security checks. You’d need to add a permission for the server you want to communicate with. If that doesn’t work, going through the background script should work.