How to display non-SSL images on HTTPS connection?

前端 未结 7 1028
耶瑟儿~
耶瑟儿~ 2020-12-28 15:32

On my https web site, how can I display images from a web site without a certificate?

I own the example domain of:

  • http://www.example.
7条回答
  •  -上瘾入骨i
    2020-12-28 16:04

    you can make your own ssl proxy.

    Run all the images through this script. Just make a file and put this PHP code inside. Use curl or file_get_contents to echo out the content.

    So if you want to call the secure image, you call it like this:

    https://mysecureserver.com/path_to_this_script/?url=[base64 encoded image link]

    
    

提交回复
热议问题