I know that by the title this may have been asked many times, but I haven't really found a similar situation asked (well, one) and I wondered if there could be a different approach?
I have a dashboard which is SSL enabled (https), but I have the need to display images from another of my own sites which is related to the dashboard, but hosted under a different domain and a different server, which is not yet SSL enabled (http).
I'm thinking along two different possible solutions apart from the obvious 'get the other site SSL enabled' (which I'm working on, but is complex).
My first thought is, can I 'allow' certain domains at a server level, somewhere in my https server to 'allow' non-https traffic from a particular domain that is deemed as safe? Or is it more a browser thing that will not allow this to happen?
If that is not possible, is there a way that I could 'get' the image in the background (when the page loads) from the http site to the https site for the purpose of displaying it? I've been reading about proxies and how it could be done, but I'm not sure if this would be the right approach. My programming language is PHP. I'm wondering if I could do a 'file_get_contents' on the image, but would then need to worry about how/where it is provisionally stored. Could this be into memory somehow, or how would I temporarily store it on a 'per-user' basis?
Just to be clear, these are images from my own sites TO my own sites. I'm not trying to do anything weird or wrong (apart from not yet having the 2nd site SSL enabled, which is of course the correct solution). I've seen plenty of people asking how to get images from other non-owned sites/servers, whereas I do have control over both of these as they are my own sites.