Skip to content
Skip to Content
Coder Docs

Report CSP violations

POST
/api/v2/csp/reports

Authorization

CoderSessionToken
headerCoder-Session-Token<token>

Request Body

Violation report

application/json
  1. body
csp-report?

Response Body

OK

The samples read CODER_URL and CODER_SESSION_TOKEN: set up your environment.

curl -X POST \	"$CODER_URL/api/v2/csp/reports" \	-H "Coder-Session-Token: $CODER_SESSION_TOKEN" \	-H "Content-Type: application/json" \	-d '{  "csp-report": {}}'
Example Response
Empty