Loading

Google 지도를 웹 페이지 개체로 내장할 때 "www.google.com refused to connect" 또는 “The Google Maps Embed API must be used in an iframe” 오류 발생

게시 일자: Nov 9, 2023
상세 설명
통합 문서에 Google 지도를 웹 개체로 내장할 때 다음 오류가 발생할 수 있습니다. 
 
The Google Maps Embed API must be used in an iframe(Google 지도 내장 API는 iframe에서 사용해야 합니다.)
 
통합 문서의 게시된 버전에 액세스할 때 다음 오류가 발생할 수 있습니다.  

www.google.com refused to connect(www.google.com에서 연결을 거부했습니다.)

또는
 
Refused to display 'https://www.google.com/maps?...' in a frame because it set 'X-Frame-Options' to 'sameorigin'('X-Frame-Options'를 'sameorigin'으로 설정했기 때문에 프레임에 'https://www.google.com/maps?...'을 표시하는 것이 거부되었습니다.)

Cause

Google 서버는 Google 지도의 URL이 포함된 대시보드 홀더를 사이트 내 프레임으로 해석하므로 맵 렌더링을 차단합니다. 
솔루션

Google 지도 URL에 "&output=svembed" 매개 변수와 함께 다음 형식을 사용하십시오.
 
https://maps.google.com/?q=40.5509,-105.0668&output=svembed
 
(https://www.google.com/maps/?q=40.5509,-105.0668 아님)

추가 자원
이 항목에 대한 추가 정보는 다음 설명서를 참조하십시오.
Knowledge 기사 번호

001471883

 
로드 중
Salesforce Help | Article