PermissionsPolicyViolationReportBody Class
The body of the reports of type permissions-policy-violation and potential-permissions-policy-violation (https://w3c.github.io/webappsec-permissions-policy/#reporting): a document used a feature that its permissions policy (or its report-only policy) disables, or the allow attribute of one of its iframes delegates such a feature.
public sealed class PermissionsPolicyViolationReportBody : ReportBody- Inheritance
ReportBodyPermissionsPolicyViolationReportBody
Properties
| Name | Description |
|---|---|
| AllowAttribute | Gets the value of the allow attribute of the iframe of a potential violation, or null. |
| ColumnNumber | Gets the column of the script that used the feature, or null. |
| Disposition | Gets enforce when the policy was enforced, or report for a violation of the report-only policy. |
| FeatureId | Gets the token of the policy-controlled feature whose policy is violated (e.g. sync-xhr). |
| LineNumber | Gets the line of the script that used the feature, or null. |
| SourceFile | Gets the URL of the script that used the feature, or null. |
| SrcAttribute | Gets the value of the src attribute of the iframe of a potential violation, or null. |
AllowAttribute
Report.csGets the value of the allow attribute of the iframe of a potential violation, or null.
public string? AllowAttribute { get; init; }ColumnNumber
Report.csGets the column of the script that used the feature, or null.
public int? ColumnNumber { get; init; }Disposition
Report.csGets enforce when the policy was enforced, or report for a violation of the report-only policy.
public string Disposition { get; init; }FeatureId
Report.csGets the token of the policy-controlled feature whose policy is violated (e.g. sync-xhr).
public string FeatureId { get; init; }LineNumber
Report.csGets the line of the script that used the feature, or null.
public int? LineNumber { get; init; }SourceFile
Report.csGets the URL of the script that used the feature, or null.
public string? SourceFile { get; init; }SrcAttribute
Report.csGets the value of the src attribute of the iframe of a potential violation, or null.
public string? SrcAttribute { get; init; }