# log\_csp

Source: https://zotonic.com/docs/2516/log_csp

URI: https://zotonic.com/id/2516

Language: en



Model for admin Content-Security Report log retrieval by index, gated by admin permissions.

This lists the most recent CSP violation reports received by the controller `controller_csp_report`.

Available Model API Paths
-------------------------

| Method | Path pattern   | Description                                                           |
| ------ | -------------- | --------------------------------------------------------------------- |
| `get`  | `/reports/...` | Return the log of recent content security reports; admin-only access. |

A trailing `/...` means extra path segments are accepted for further lookups.

License: 

Attribution: 

Related resources: https://zotonic.com/api/agent/related/2516?language=en


## API access

- [API help](<https://zotonic.com/api-help>)
- [OpenAPI specification](<https://zotonic.com/openapi.json>)
- [This resource as JSON](<https://zotonic.com/api/agent/resource/2516?language=en>)
