Iframe not working for external URLs in workspace
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-07-2023 10:17 PM
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:
External sites in iFrame: for example tried with docs.servicenow.com and it's not loading the URL.
Please let me know if any other configurations needed to work for external sites.
Thanks,
Srinivas
- Labels:
-
UI Builder : Next Experience
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-11-2023 09:43 AM
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.