REST api Firefox plugin

Hello,

I’m trying to call REST API of orthanc from Firefox plugin created for non orthanc web service.

Modifying the primary service is impossible, all I can do is develop user-side firefox xpi/userscript plugin and call orthanc from the plugin. Have anybody done this before? I probably ran across CORS issue, as firefox is reporting network error with my REST call.

Any ideas?

Please share a minimal working example if you expect someone to be able to reproduce your issue:
https://en.wikipedia.org/wiki/Minimal_working_example