KNOWLEDGE BASE

Error "Refused to display '<URL of View>' in a frame because it set 'X-Frame-Options' to 'SAMEORIGIN'" When Loading an Embedded View Within an Iframe


Published: 12 Feb 2016
Last Modified Date: 20 Jul 2016

Issue

When loading embedded Tableau Online views, the following error message might occur: 

Refused to display '<URL of View>' in a frame because it set 'X-Frame-Options' to 'SAMEORIGIN'.

Environment

Tableau Online 

Resolution

Ensure that the URL used for embedding the view is the URL from the Share option in Tableau Online:
  1. In Tableau Online, navigate to the view producing this error message. 
  2. Click the Share button. 
  3. Copy the URL link within the Link section. 
  4. Configure the embed code to use this URL rather than the Tableau Online URL in the browser address bar.

Cause

The URL used was not compatible with embed code.
Did this article resolve the issue?