I have a server script that I need to pass data to from the browser without reloading the page (aka ajax). The data is sensitive so should be sent via https. The page however is on the http layer. Because of same domain/protocol restriction, the browser doesn't allow this.
I'm thinking of cheating the system a bit by dynamically creating image tags and call the script using the src tag such as:
<img src="https://mydomain.com/mysecurescript/&data=to&pass=to&my=script" />
I'd like to know if this will indeed be properly encrypted.