I'm currently writing a Chrome extension that sends an HTTP request to a third-party API in order to show some data on the page, inside a DOM element.
However, I've run into an issue where Chrome blocks the HTTP request, because the page was loaded over HTTPS, and the API I'm using only supports HTTP. Specifically, the error I'm getting is this:
Mixed Content: The page at 'https://www.reddit.com/r/anime/comments/3d2g2u/merch_mondays_megathread_week_of_july_13_2015/' was loaded over HTTPS, but requested an insecure XMLHttpRequest endpoint 'http://myanimelist.net/malappinfo.php?u=TalesOhneNamen&status=all&type=anime'. This request has been blocked; the content must be served over HTTPS.
Obviously I understand why mixed requests are blocked for JS provided by the page itself, but is there a way to disable this for extensions? It would be a little ridiculous if the extension could only function on pages loaded over HTTP..