“Protocols, domains, and ports must match” problems

后端 未结 3 1479
孤街浪徒
孤街浪徒 2021-02-08 00:20

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?

Blocked

相关标签:
3条回答
  • 2021-02-08 00:34

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

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

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

    0 讨论(0)
  • 2021-02-08 00:39

    You cannot access values in the embedded facebook page. That is against the Same Domain Policy. The two sites can communicate using postMessage if you control both sites, but I doubt that you control the facebook part ...

    0 讨论(0)
  • 2021-02-08 00:40

    Can you provide some information about the browser where you're getting those errors?

    Because Chrome have a know error related with your issue. More info here.

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