“协议,域和端口必须匹配”问题 [英] "Protocols, domains, and ports must match" problems

查看:578
本文介绍了“协议,域和端口必须匹配”问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我在控制台上查看时,我的网站有这些错误消息。
有人能告诉我通常会导致这些错误消息的问题是什么吗?

My website have these error messages when i view it on console. Can anybody tell me what is the problems that usually caused these error messages?


阻止来自mysite的框架来自使用
来源facebook访问一个框架。被访问的帧将document.domain设置为
facebook,但请求访问的帧没有。两者都必须将
document.domain设置为相同的值才能允许访问。
contentscript_siteoverlay_bin.js:78

Blocked a frame with origin "mysite" from accessing a frame with origin "facebook". The frame being accessed set "document.domain" to "facebook", but the frame requesting access did not. Both must set "document.domain" to the same value to allow access. contentscript_siteoverlay_bin.js:78

使用
来源youtube访问一个框架,阻止原始mysite的框架。协议,域和端口必须匹配。
contentscript_siteoverlay_bin.js:78

Blocked a frame with origin "mysite" from accessing a frame with origin "youtube". Protocols, domains, and ports must match. contentscript_siteoverlay_bin.js:78

使用
来源googleads访问框架,阻止原始mysite的框架。协议,域和端口必须匹配。
contentscript_siteoverlay_bin.js:78

Blocked a frame with origin "mysite" from accessing a frame with origin "googleads". Protocols, domains, and ports must match. contentscript_siteoverlay_bin.js:78

阻止一个原始mysite的框架访问一个原始框架
facebook。请求访问的帧具有协议http,被访问的
帧具有协议https。协议必须匹配。

Blocked a frame with origin "mysite" from accessing a frame with origin "facebook". The frame requesting access has a protocol of "http", the frame being accessed has a protocol of "https". Protocols must match.

感谢您的帮助。

推荐答案

iframe和主页必须匹配协议( Http:// Https://

iframes and the main page have to match protocols ( Http:// and Https:// )

安全网站无法与不安全的网站通信

a secure site can not communicate with a not-secure site

让一切安全让事情变得更容易像Facebook这样的网站无论如何都会要求它。

just make everything secure to make things easier. Sites like Facebook are going to require it anyways.

这篇关于“协议,域和端口必须匹配”问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆