Collect Csp Report
API Reference
Collect Csp Report
Collect a Content-Security-Policy violation report.
Accepts the application/csp-report and application/reports+json
payloads emitted by browsers (and plain JSON), logs the report, and always
returns 204 No Content. Report ingestion never returns an error status,
to avoid noisy browser retries and to keep this unauthenticated path inert.
POST /csp
Args: request: Incoming request carrying the browser’s CSP report body.
Returns:
Response: Empty 204 No Content response.
POST
Collect Csp Report
Response
204
Successful Response