Error " 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: 06 Apr 2021


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: refused to connect

Refused to display '' in a frame because it set 'X-Frame-Options' to 'sameorigin'


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


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. 

Tableau Desktop requires an Iframe when showing the maps. On Tableau Server it generates it's own Iframe so if published with the Iframe originally it fails
Did this article resolve the issue?