The CreatorCon Call for Content is officially open! Get started here.

Servicenow Iframe issues

Devtesting123
Giga Contributor

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

5 REPLIES 5

RaghavSh
Kilo Patron

@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.


Raghav
MVP 2023
LinkedIn

Ankur Bawiskar
Tera Patron
Tera Patron

@Devtesting123 

what's your business requirement here?

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

Ankur Bawiskar
Tera Patron
Tera Patron

@Devtesting123 

My thought

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.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

@Devtesting123 

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.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader