티스토리 뷰
Programming/Spring
[spring] Uncaught DOMException: Blocked a frame with origin from accessing a cross-origin frame
마음 부자 2020. 10. 16. 16:41반응형
Uncaught DOMException: Blocked a frame with origin from accessing a cross-origin frame
origin이 달라서 발생하는 문제. 즉 부모와 참조하는 자식의 도메인이 다름. (크로스 도메인)
postmessage사용하여 파라미터 값 전달
아래 postmessage 링크 보고 적용.
https://developer.mozilla.org/ko/docs/Web/API/Window/postMessage
Window.postMessage()
window.postMessage() 메소드는 Window 오브젝트 사이에서 안전하게 cross-origin 통신을 할 수 있게 합니다. 예시로, 페이지와 생성된 팝업 간의 통신이나, 페이지와 페이지 안의 iframe 간의 통신에 사용할 �
developer.mozilla.org
반응형
'Programming > Spring' 카테고리의 다른 글
[eclipse] 개발하면서 유용하게 사용할 수 있는 단축키에요. 개발 시간 단축에 필수 (0) | 2021.01.03 |
---|---|
[spring] java.lang.NumberFormatException: For input string: "Y" (0) | 2020.10.21 |
[Spring] could not save because the file has been modified since the start of editing (0) | 2020.10.16 |
[eclipse] the specified jre installation does not exist 오류 (0) | 2020.07.16 |
[java] Project facet java version 13 is not supported 간단 해결법 (0) | 2020.03.16 |
댓글
반응형