I am trying to develop a web extension that will initiate an AJAX call to the website currently being viewed by the user. The specific endpoint I need to access on this website is located at /foo/bar?query=
.
Am I facing any obstacles in using either the fetch API or an XMLHttpRequest to reach out to this endpoint?
Despite my attempts, I keep encountering a server error message when using these methods. Additionally, there is no activity showing up in the network tab while troubleshooting my extension. I have a suspicion that there may be a WebExtensions API designed for this particular task, but unfortunately, I have been unable to locate it.