Merhaba,
siteme girişte Chrome Consol'da
Uncaught SecurityError: Failed to read the 'contentDocument' property from 'HTMLIFrameElement': Blocked a frame with origin "http://SİTE ADRESİM" from accessing a frame with origin "https://www.facebook.com". The frame requesting access has a protocol of "http", the frame being accessed has a protocol of "https". Protocols must match.
SecurityError: Failed to read the 'contentDocument' property from 'HTMLIFrameElement': Blocked a frame with origin "http://SİTE ADRESİM" from accessing a frame with origin "http://s7.addthis.com". The frame requesting access set "document.domain" to "agario.biz", but the frame being accessed did not. Both must set "document.domain" to the same value to allow access.
şeklinde hata mesajı alıyorum. İnternette biraz araştırma yaptım ve origin domain ayarıyla ilgili olduğu söyleniyor. Çözümü için
header mesajı olarak;
header('Access-Control-Allow-Origin: *');
java script olarak;
document.domain = 'siteadresim.com';
eklemelerini yaptım fakat sorun devam ediyor.
Daha önce karşılaşmış olan ve/veya çözümünü bilen arkadaşların tecrübesini paylaşmasını rica ederim.
Bu sorun siteye ilk girişte yüklenme süresinin çok uzamasına sebep oluyor.