Skip to content

Commit

Permalink
Merge pull request #15385 from mozilla/make-csp-uri-check-less-strict
Browse files Browse the repository at this point in the history
task(content): Make csp-report.blocked-uri validation check less strict
  • Loading branch information
dschom authored Jun 6, 2023
2 parents 0612880 + 07713b6 commit 8b1b99c
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions packages/fxa-content-server/server/lib/routes/post-csp.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,14 +26,7 @@ const BODY_SCHEMA = {
.keys({
// CSP 2, 3 required
// `eval` and `inline` are specified in CSP 3 and sent by Chrome
'blocked-uri': LONG_URI_TYPE.allow('')
.allow('asset')
.allow('blob')
.allow('data')
.allow('eval')
.allow('inline')
.allow('self')
.optional(),
'blocked-uri': STRING_TYPE.allow('').optional(),
// CSP 2, 3 optional
'column-number': INTEGER_TYPE.min(0).optional(),
// CSP 3 required, but not always sent
Expand Down

0 comments on commit 8b1b99c

Please sign in to comment.