Idira Identity: Failed to login Salesfroce plugin due to X-Frame-Options is set to SAMEORIGIN
Symptom
We have set up SAML authentication with Salesforce, and we would like to present an application into an iFrame on salesforce, but that is currently prevented due to the X-Frame-Options was set to SAMEORIGIN
Cause
To allow Salesforce plugin login, X-Frame-Options has to be ALLOW-FROM, Identity is using X-Frame-Options: SAMEORIGIN by default
X-Frame-Options Header Types
There are three possible values for the X-Frame-Options header:
DENY, which prevents any domain from framing the content. The "DENY" setting is recommended unless a specific need has been identified for framing.
SAMEORIGIN, which only allows the current site to frame the content.
ALLOW-FROM uri, which permits the specified 'uri' to frame this page. (e.g., ALLOW-FROM http://www.example.com) Check Limitations Below this will fail open if the browser does not support it. Other browsers support the new CSP frame-ancestors directive instead. A few support both.
Resolution
There is an option in back-end that can enable iFrame support for the tenant which will set X-Frame-Options to ALLOW-FROM, please contact support if you would like this to be enabled