src/HardHat/ContentSecurityPolicyBuilder.cs
/// <summary>
/// Instructs the browser to POST reports of policy failures to this URI. You can also append -Report-Only to the HTTP header name to instruct the browser to only send reports (does not block anything). 
/// </summary>
/// <param name="uri"></param>
/// <returns></returns>
Instructs the browser to POST reports of policy failures to this URI. You can also append -Report-Only to the HTTP header name to instruct the browser to only send reports (does not block anything).
Instructs the browser to POST reports of policy failures to this URI . You can also append - Report - Only to the HTTP header name to instruct the browser to only send reports ( does not block anything ) .
public ContentSecurityPolicyBuilder WithReportUri(string uri, bool OnlySendReport = false)
        {
            if(string.IsNullOrWhiteSpace(uri))
            {
                throw new ArgumentNullException(nameof(uri));
            }
            Policy.ReportUri = uri;
            Policy.OnlySendReport = OnlySendReport;
            return this;
        }
public ContentSecurityPolicyBuilder WithReportUri ( string uri , bool OnlySendReport = false ) { if ( string . IsNullOrWhiteSpace ( uri ) ) { throw new ArgumentNullException ( nameof ( uri ) ) ; } Policy . ReportUri = uri ; Policy . OnlySendReport = OnlySendReport ; return this ; }
Instructs the browser to POST reports of policy failures to this URI.
Instructs the browser to POST reports of policy failures to this URI .
None
uri
string
None
OnlySendReport
bool