I have a secure (HTTPS) web app which needs to load a custom stylesheet from an insecure (HTTP) origin (customer's own website). This is blocked by modern browsers, however I need a workaround because:
1) I cannot ask my customers to host their custom stylesheets on HTTPS. They don't have the know-how and some of them have policies about what hosts and regions stuff can be hosted in (ironically, not about HTTPS though). 2) I obviously cannot ask the end user to disable security features in their browser.
I tried, loading stylesheets using <style>@import url(...);</style>
, I tried creating an iframe with src="about:blank" and loading the stylesheet from within there, I tried XHR and fetch (but that will require CORS to be enabled on the remote host which I cannot reasonably expect).
Short of creating a secure proxy that will serve any stylesheet on the web, is there any other workaround I'm missing here?
Any sorcery to get my page to load a cross-origin stylesheet over HTTP?