2017-01-11 2 views
-1

크롬에서 내 사이트의 iframe로드가 실패했지만 Firefox에서 정상적으로 작동합니다. 크롬Chrome에서 교차 출처 프레임로드를 해결하는 방법은 무엇인가요?

enter image description here

오류 메시지 : 오류 메시지에 대한 스냅 샷

PFA

catch되지 않은 예외 : DOMException : 크로스 출처 프레임에 액세스 "http://localhost:9001"원점 프레임을 차단 . Object.FCKTools.FixDocumentParentWindow Object.FCKTools.FixDocumentParentWindow에서 (http://localhost:9001/cmscockpit/zkau/web/js/ext/FCKeditor/editor/js/fckeditorcode_gecko.js:7:42291) 에서 Object.FCKTools.FixDocumentParentWindow에서 (http://localhost:9001/cmscockpit/zkau/web/js/ext/FCKeditor/editor/js/fckeditorcode_gecko.js:7:42372)에서 Object.FCKTools.GetDocumentWindow (http://localhost:9001/cmscockpit/zkau/web/js/ext/FCKeditor/editor/js/fckeditorcode_gecko.js:7:42372)에서 Object.FCKTools.GetElementWindow (http://localhost:9001/cmscockpit/zkau/web/js/ext/FCKeditor/editor/js/fckeditorcode_gecko.js:7:42168) (http://localhost:9001/cmscockpit/zkau/web/js/ext/FCKeditor/editor/js/fckeditorcode_gecko.js:7:42032) FCKToolbarSet.Load에서 FCKToolbar.Create (http://localhost:9001/cmscockpit/zkau/web/js/ext/FCKeditor/editor/js/fckeditorcode_gecko.js:7:220569) 에서 FCKToolbarFontSizeCombo.FCKToolbarSpecialCombo.Create (http://localhost:9001/cmscockpit/zkau/web/js/ext/FCKeditor/editor/js/fckeditorcode_gecko.js:7:204406) 에서 Object.StartNext에서 LoadToolbar (http://localhost:9001/cmscockpit/zkau/web/js/ext/FCKeditor/editor/fckeditor.html?InstanceName=z_1t_ld5!ed:194:15)에서 (http://localhost:9001/cmscockpit/zkau/web/js/ext/FCKeditor/editor/js/fckeditorcode_gecko.js:7:225568)

(: 644 : 1)

파이어 폭스에서 경고 : 메인 스레드에

동기 XMLHttpRequest를 때문에 최종 사용자의 경험에의 악영향으로 사용되지 않습니다. 도움이 필요하면 http://xhr.spec.whatwg.org/

프로토콜, 도메인 및 포트가 두 위치에서 모두 동일하므로 크로스 발생 오류가 여기에오고있는 이유를 잘 모릅니다.

답변

0

가능한 이유는 :

1) 서버가 iframe을에서 열 수있는 콘텐츠를 차단한다. 서버에서 구현됩니다. 2) CORS. 서버에서 구현됩니다.

관련 문제