gpt4 book ai didi

security - SSL iframe嵌入其他网站

转载 作者:太空宇宙 更新时间:2023-11-03 12:37:54 26 4
gpt4 key购买 nike

来自具有 SSL 证书的域的 iframe 将嵌入到其他站点 (foo.com)。

  1. foo.com 必须有 SSL 证书吗?
  2. 如果 foo.com 有 SSL 证书,会不会是安全错误? foo.com 有 foo.com 的 SSL 证书,但 iframe 域有其他 SSL 证书。
  3. 如果 foo.com 没有获得 SSL 证书,会不会是一个安全错误?

最佳答案

  1. 没有。
  2. 如果嵌入站点使用 SSL,您只会收到安全错误,但 iFramed 站点不使用。这些站点是否使用不同的证书都没有关系。
  3. 没有。 (这不是与 #1 相同的问题吗?)

总结

在主页和 iframed 页面之间使用不同的证书不是问题。

嵌入 https://包含 <iframe /> 的页面在 http:// 上页面没有问题。

但是,如果您正在运行 https://通过 http:// 嵌入非安全页面的安全页面, 然后你可能会得到这样的东西 (Internet Explorer):

enter image description here

这取决于浏览器及其设置。例如,在 IE 中你可以关闭它:

enter image description here

关于security - SSL iframe嵌入其他网站,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2387691/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com