src/HardHat/ContentSecurityPolicyBuilder.cs
/// <summary>
/// Defines valid sources of fonts. 
/// </summary>
/// <param name="sources"></param>
/// <returns></returns>
Defines valid sources of fonts.
Defines valid sources of fonts .
public ContentSecurityPolicyBuilder WithFontSource(params string[] sources)
        {
            if (sources == null || sources.Length < 1)
            {
                throw new ArgumentException(nameof(sources));
            }
            Policy.FontSrc.UnionWith(sources);
            return this;
        }
public ContentSecurityPolicyBuilder WithFontSource ( params string [ ] sources ) { if ( sources == null || sources . Length < 1 ) { throw new ArgumentException ( nameof ( sources ) ) ; } Policy . FontSrc . UnionWith ( sources ) ; return this ; }
Defines valid sources of fonts.
Defines valid sources of fonts .
None
sources
<not_specific>
None