Skip to content

Instantly share code, notes, and snippets.

@therefromhere
Created October 16, 2016 02:50
Show Gist options
  • Save therefromhere/b2e4c84c23031efd516564fdccfb7416 to your computer and use it in GitHub Desktop.
Save therefromhere/b2e4c84c23031efd516564fdccfb7416 to your computer and use it in GitHub Desktop.
Content Security Policy Violation Report syntax as JSON schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"description": "Content Security Policy Violation Report",
"type": "object",
"required": [ "csp-report" ],
"properties": {
"csp-report": {
"type": "object",
"properties": {
"document-uri": { "type": "string" },
"referrer": { "type": "string" },
"blocked-uri": { "type": "string" },
"effective-directive": { "type": "string" },
"violated-directive": { "type": "string" },
"original-policy": { "type": "string" },
"disposition": { "type": "string" },
"status-code": { "type": "number" },
"source-file": { "type": "string" },
"line-number": { "type": "number" },
"column-number": { "type": "number" }
}
}
},
"additionalProperties": false
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment