Servicenow Iframe issues
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
Hi
I'm trying to load Servicenow as an iframe in a website but im getting an error.
Looking at the browser console logs i see this error *** WARNING *** GlideAjax.getXMLWait - synchronous function - processor: SysMessageAjax.
The page doesn't seem to cache, even though I'm logged into my servicenow instance in another browser tab
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
@Devtesting123 What is the business requirement? Iframe has cross scope restrictions, that could be the issue.
GlideAjax.getXMLWait could be due to any Global script running on load of instance.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
what's your business requirement here?
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
My thought
- ServiceNow restricts embedding its pages in external iframes due to security headers like X-Frame-Options: SAMEORIGIN, which blocks loading in cross-origin iframes
- the risk is shared here (Why you should never use external iFrames - and the one exception to this rule )
But please check these links
Specify URL allow list for cross-origin iframe communication (instance security hardening)
Try using getXML() in GlideAjax.
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
Hope you are doing good.
Did my reply answer your question?
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader