Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Got a lot of "effectiveDirective default-src" #98

Open
dxxbbf opened this issue Jul 22, 2024 · 0 comments
Open

Got a lot of "effectiveDirective default-src" #98

dxxbbf opened this issue Jul 22, 2024 · 0 comments

Comments

@dxxbbf
Copy link

dxxbbf commented Jul 22, 2024

Hi there,

i got a lot of csp reportings like following:

{
  "blockedURL": "<app-domain>",
  "columnNumber": 11961,
  "disposition": "enforce",
  "documentURL": "<app-domain>",
  "effectiveDirective": "default-src",
  "violatedDirective": "default-src",
  "lineNumber": 1,
  "originalPolicy": "default-src 'none'; script-src 'self' 'wasm-unsafe-eval'; connect-src 'self' data:; img-src 'self' data: blob:; upgrade-insecure-requests; style-src 'self' 'unsafe-inline'; font-src 'self' data:; frame-src; manifest-src 'self'; worker-src 'self'; child-src 'self'; media-src 'self' data:;",
  "referrer": "",
  "sourceFile": "<app-domain>.js",
  "statusCode": 200,
  "sample": null,
  "type": "csp-report"
}

Mine CSP sets default-src 'none' and then whitelists a lot of things (i redacted the domains). Now i´m getting a lot of csp-violations (over the reporting api) where effectiveDirective is default-src. Does anybody have a idea whats happing there?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant