Skip to content

Commit

Permalink
csp-violation referrer might not be sent on older chrome
Browse files Browse the repository at this point in the history
Observed user-agent: `Mozilla/5.0 (Linux; Android 10; SAMSUNG SM-A107F) AppleWebKit/537.36 (KHTML, like Gecko) SamsungBrowser/13.2 Chrome/83.0.4103.106 Mobile Safari/537.36`
  • Loading branch information
wille committed Aug 2, 2024
1 parent b74a9c3 commit 12ceb39
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/schemas.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export const ContentSecurityPolicyReport = z
effectiveDirective: z.string(),
lineNumber: z.number().optional(),
originalPolicy: z.string(),
referrer: z.string(),
referrer: z.string().optional(),
sample: z.string().optional(),
sourceFile: z.string().optional(),
statusCode: z.number().optional(),
Expand Down

0 comments on commit 12ceb39

Please sign in to comment.