Including the GwCrossOriginExternal library
The embedded application can include the
GwCrossOriginExternal library by linking to
gw-embedded-ts.js, which is included in the PolicyCenter distribution. You must initialize the library before using
it by calling the
following:GwCrossOriginExternal.init(origin);In this call, origin is the start of the InsuranceSuite application URL, as required by Window.postMessage.
The GwCrossOriginExternal library is in the directory PolicyCenter/modules/configuration/webSrc/ts/build. The file gw-embedded-ts.js contains a minified version, and the file gw-embedded-ts-debug.js contains a non-minified version with a source map. The library is written in TypeScript and transpiled to JavaScript. The TypeScript definition file is in PolicyCenter/modules/configuration/webSrc/ts/build/types/embedded/GwCrossOriginExternal.d.ts.
