Skip to content

Commit

Permalink
address feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
TheRealJon authored and openshift-cherrypick-robot committed Feb 11, 2025
1 parent 9fd44c2 commit 3183941
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ export const useCSPViolationDetector = () => {
}, [reportViolation]);
};

// A subset of properties from a SecurityPolicyViolationEvent which identify a unique CSP violation
/** A subset of properties from a SecurityPolicyViolationEvent which identify a unique CSP violation */
type CSPViolationReportProperties =
// The URI of the resource that was blocked because it violates a policy.
| 'blockedURI'
Expand All @@ -192,10 +192,10 @@ type CSPViolationReportProperties =
// HTTP status code of the document or worker in which the violation occurred.
| 'statusCode';

// A CSPViolationReport represents a unique CSP violation per plugin
/** A CSPViolationReport represents a unique CSP violation per plugin */
type CSPViolationReport = Pick<SecurityPolicyViolationEvent, CSPViolationReportProperties> & {
pluginName: string;
};

// A CSPViolationRecord represents a unique CSP violation per plugin, per occurrance
/** A CSPViolationRecord represents a unique CSP violation per plugin, per occurrance */
type CSPViolationRecord = CSPViolationReport & { timestamp: number };

0 comments on commit 3183941

Please sign in to comment.