If the src of the iframe points to the same domain as the toplevel window then it will work out of the box.

But if the toplevel window is for example "demo1.com" and the IFrame points to "demo2.com" then a number of things need to be configured correctly to run the NGClient normally in an IFrame.


To configure the session cookie to have the SameSite attribute set to none you need to lookup the documentation of your Servlet Container

For Tomcat (and maybe others) this means you need to have in the WAR file a "META-INF/context.xml" file which has as content:


<Context>
   <CookieProcessor sameSiteCookies="none" />
</Context>


But in the browser cookies with "none" as SameSite can only be set when the "secure" is also true, so you need to run in https mode for this to work.