Iframe not working for external URLs in workspace

SriniSnow
Tera Contributor

Hi,

 

We have a requirement to show external URL data into Modal popup in CSM and FSM configurable workspace by clicking one UI action.

For this, tried using iFrame in UIB and it's only working for Wikipedia which is available OOB and not for any other external sites.

 

Wikipedia in iFrame:

SriniSnow_0-1702016012766.png

 

External sites in iFrame: for example tried with docs.servicenow.com and it's not loading the URL.

SriniSnow_1-1702016048146.png

 

Please let me know if any other configurations needed to work for external sites.

 

Thanks,

Srinivas

1 REPLY 1

Dibyaratnam
Tera Sage

The issue is due to some of the security applied from ServiceNow side. You can read more on this from this link.

If you check the console tab in browser developer tools, you will find the message  - : refused to frame 'https://docs.servicenow.com/' because an ancestor violates the following content security policy directive: "frame-ancestors 'self'"

 

Check out this article if it helps in fixing the issue.