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