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.
SecurityError: Failed to read the 'contentDocument' hatası
1
●844
- 26-08-2015, 07:12:40Hocam kendi sitenden js ile başka bir siteye post veya get atman için o sitenin izin vermesi lazım. link atarsan pmden bakabilirim.