NonceInfo: {
    generator?: ((tag?) => string);
    script?: boolean;
    style?: boolean;
    tokens?: {
        all?: string;
        script?: string;
        style?: string;
    };
}

Pass nonce info to xarc for generating script and style tags into the HTML

Type declaration

  • Optional generator?: ((tag?) => string)

    token generator

      • (tag?): string
      • Parameters

        • Optional tag: string

        Returns string

  • Optional script?: boolean

    insert nonce for script tags? default: true

  • Optional style?: boolean

    insert nonce for style tags? default: true

  • Optional tokens?: {
        all?: string;
        script?: string;
        style?: string;
    }

    nonce tokens

    • Optional all?: string
    • Optional script?: string
    • Optional style?: string