How to display non-SSL images on HTTPS connection?

前端 未结 7 996
耶瑟儿~
耶瑟儿~ 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条回答
  • 2020-12-28 16:20

    You must serve all content that you link to or embed (directly or via AJAX) on a page served over HTTPS by using https:// references.

    One way of going around the 3rd-party, plain-HTTP content problem is to serve that content via a reverse proxy that uses HTTPS, possibly on your site or a service for this. There might be legal implication in doing so, depending on whether it's considered as mere proxying or duplicating content (perhaps similarly to what Google cache does). In addition, by doing so, you're effectively vouching for the content you embed this way.

    0 讨论(0)
提交回复
热议问题