Created
October 16, 2016 02:50
-
-
Save therefromhere/b2e4c84c23031efd516564fdccfb7416 to your computer and use it in GitHub Desktop.
Content Security Policy Violation Report syntax as JSON schema
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"$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