"Protocols, domains, and ports must match" problems

Ewe Tek Min picture Ewe Tek Min · Jun 2, 2013 · Viewed 45.5k times · Source

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 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

Blocked a frame with origin "mysite" from accessing a frame with origin "youtube". Protocols, domains, and ports must match. 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

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.

thank you for your help.

Answer

Scott Selby picture Scott Selby · Jun 2, 2013

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.