Google Apps Script 가젯이 모두 포함 된 여러 페이지가있는 Google 사이트가 있습니다. 사용자는 몇 달 전에 Apps Script 가젯이 작동을 멈췄다 고보고했습니다. 테스트 한 결과 Apps Script 가젯이 올바르게로드되고 UI 서비스의 콘텐츠를 표시하는 것으로 나타 났지만 기능을 실행하는 버튼을 클릭하면 Apps Script 가젯이 중단되고 브라우저에 콘솔 오류가 표시됩니다.
Uncaught SecurityError: Failed to read the 'frame' property from 'Window': Blocked a frame
with origin "https://sites.google.com" from accessing a frame with origin
"https://xxxxxxxxxxxxxxxx-a-sites-opensocial.googleusercontent.com".
Protocols, domains, and ports must match.
Google이 Apps Script Script에 대해 Cross Origin 요청이 이루어지지 않도록하는 보안 정책을 변경 했나요? 이에 대한 해결 방법이 있습니까?
감사
Stu
이 문제에 대한 유일한 해결책은 가젯을 새 페이지에서 Apps Script URL을 여는 링크로 바꾸는 것입니다.
이 기사는 인터넷에서 수집됩니다. 재 인쇄 할 때 출처를 알려주십시오.
침해가 발생한 경우 연락 주시기 바랍니다[email protected] 삭제
몇 마디 만하겠습니다