The Embed page in the Server section of the Admin menu lets you configure settings for embedded Looker content.
Embedded Domain Whitelist
In that case, add the domain where the iframe is being used to this field, then click Update.
Same-Origin Protections for Looker Login Pages
Looker enforces a same-origin policy for iframe content, which means that a page cannot be displayed in an iframe if the parent page domain name is different from the iframe page domain name. This protects against possible UI redress attacks, commonly known as “clickjacking.”
The one exception to this policy is the Looker login page. For the login page, you can use the Same-Origin Protections for Looker Login Pages setting to configure whether or not you want to enforce the same-origin policy:
- Disabled: Looker does not enforce the same-origin policy for the login page.
- Enabled: Looker enforces the same-origin policy for the login page.
For certain use cases, it is important to allow Looker login pages to appear within a Looker iframe even when the parent page is not compatible with the Looker instance’s domain name, and so you need to have the Same-Origin Protections for Looker Login Pages setting Disabled:
- If you use private embedding of Looker content in an iframe of a web page hosted by a non-Looker domain, you need to disable Same-Origin Protections for Looker Login Pages so that Looker can display the login page in the iframe and allow users to log into Looker.
Set Same-Origin Protections for Looker Login Pages to Enabled if either of the following is true:
- You don’t embed any Looker content.
- You use only SSO embedding, since the Looker login page isn’t used for SSO embeds.
To change the setting for same-origin protection, use the pull-down menu to select your desired option, then be sure to click the Update button to save your selection.
This feature needs to be enabled if you want to make use of Looker’s Single Sign-on Embedding feature. To do so, select Enabled and click Update.
This setting is only revealed if Embed Authentication is set to Enabled.
An embed secret is needed to make use of Looker’s Single Sign-on Embedding feature.
To retrieve the embed secret click the Set Secret button.
It’s important to copy the secret and save it in a safe place immediately, as you cannot retrieve the secret from this page after you leave it.
If you need to change your secret you can click the Reset Secret button, but realize that this will break any existing single sign-on embeds.
Embed URI Validator
This setting is only revealed if the Embed Secret has been set.
After generating a URL for Looker’s Single Sign-on Embedding feature you can test it by pasting it in the Embed URI Validator field and clicking Test URI.