http,https和ajax旁路,也许吗?

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.

查看全部
weixin_33738982
?Briella
2009/10/09 00:54
  • http
  • https
  • ajax
  • 点赞
  • 收藏
  • 回答
    私信

4个回复