I donāt see a satisfactory way to do this without implementing any code on the resellerās site.
Instead, I would require them to send an HTTPS request from the resellerās web server to the main web server, passing a unique secret key to identify themselves, as well as the username of their registered user.
After verification on the main site, this key will serve as authentication for the reseller and extension registered by the user.
The response to this request will contain an html fragment string that the reseller can enter on any page.
This fragment will contain an iframe, which, in turn, will download the report for the registered user directly from the main site using its username. The contents of this report will contain a link to the reseller style sheet.
With this approach, I would say that HTTPS is not required in the browser, since both the reseller and their user are authenticated, and if this process occurred through HTTPS, we can assume that there is no eavesdropping.
In the case when the user's secret key or password is compromised, HTTPS from the browser does not matter.
source share