Using Hangout API in GWT

Skip to first unread message


Mar 31, 2012, 3:50:39 AM3/31/12
I am in the middle of a problem to add Hangout API into my collaboration web application written in GWT.
Since Hangout API only allows to be run on only domain,
the GWT compiled javascript which hosted on my domain can not be injected into a hangout instance by the GWT's script iframe injection method due to security rule of browsers.
For illustration,  The following is a sample web app at

The gray hilight text at the half-bottom of the screen is the iframe added by GWT to inject the compiled Javascript.

I using the following XML file for Hangout API

When running it with Hangout instance, My web application could not be run, it encounters with the following problem.

4Unsafe JavaScript attempt to access frame with URL from frame with URL Domains, protocols and ports must match.

Without iframe method, Is there is method in GWT to change the way to injecting its javascript file? 
or There are any methods to solve this? It is very appreciated.

Thank you very much!

Kobkrit Viriryayudakorn 

Thomas Broyer

Mar 31, 2012, 5:46:34 AM3/31/12
This is why the xsiframe linker is for (and previously, the xs linker, which is now deprecated); simply add that to your gwt.xml:
<add-linker name="xsiframe" />
Reply all
Reply to author
0 new messages