AboutSupportDeveloper GuideVersion 38.126.82.64

Configurations for API injection.

interface ApiSettings {
    fin?: InjectionType;
    iframe?: {
        crossOriginInjection?: boolean;
        enableDeprecatedSharedName?: boolean;
        sameOriginInjection?: boolean;
    };
}

Properties

Properties

Configure injection of the fin API in this context.

  • 'none': The fin API will be not available in this context.
  • 'global': The entire fin API will be available in this context.
iframe?: {
    crossOriginInjection?: boolean;
    enableDeprecatedSharedName?: boolean;
    sameOriginInjection?: boolean;
}

Configure conditional injection of OpenFin API into iframes

Type declaration

  • Optional crossOriginInjection?: boolean

    Inject OpenFin API into cross-origin iframes

    Default Value

    false
    
  • Optional enableDeprecatedSharedName?: boolean

    Deprecated

    Shared names should not be used; support is provided purely for back-compat reasons.

    When true, iframes will have the same name as their parent WebContents.

  • Optional sameOriginInjection?: boolean

    Inject OpenFin API into same-origin iframes

    Default Value

    true