KNOWLEDGE BASE

Error "www.google.com refused to connect" Or “The Google Maps Embed API must be used in an iframe” Embedding Google Maps As a Web Page Object


Published: 17 May 2019
Last Modified Date: 05 Aug 2020

Issue

When embedding google maps as a web object in workbooks, the following errors may occur: 
 
The Google Maps Embed API must be used in an iframe
 
When accessing a published version of the workbook, the below errors may occur:  

www.google.com refused to connect

Or
 
Refused to display 'https://www.google.com/maps?...' in a frame because it set 'X-Frame-Options' to 'sameorigin'

Environment

  • Tableau Desktop
  • Tableau Server
  • Tableau Online
  • Google Maps

Cause

The Google servers are interpreting the dashboard holder that contains the URL for the Google map as a Frame within a site and therefore they are blocking the rendering of the map. 
Did this article resolve the issue?