Reject a header value
Rejects the header's current value with a reason saying why it should not be served, and withdraws any approval. Send the valueHash you read: a value that changed since answers 409 header_changed. This records your decision but does not change what the page sends, so fix the header on your server as well.
Limited to 120 requests a minute for each person, after which it answers 429 with a Retry-After header. Every decision on a script or on a header value counts toward the same budget.
Requires the analyst role on the website and the compliance plan feature.
AuthorizationBearer <JWT>An OpenID Connect access token from signing in to CentralCSP, acting as the signed-in user.
workspaceId*stringThe workspace's id.
websiteId*stringThe website's id.
headerId*stringThe header's id.
application/json- body
The value you reviewed and why it should not be served.
valueHash*stringThe valueHash of the value you reviewed, as listed. If the header changed since, the decision is refused with header_changed.
^[0-9a-f]{64}$reason*stringWhy this value should not be served.
\S1 <= length <= 4096A security header of a watched address, with its review.
application/json- response
id*stringThe header's id.
addressId*stringThe id of the watched address it was seen on.
url*stringThe watched address it was seen on.
addressName*stringThe name of the watched address it was seen on.
name*stringThe header's lowercased name. meta:content-security-policy is a policy set in a <meta> tag. location holds the redirects followed from the address, one line per redirect in order: its status code, then its target without query string (301 https://www.example.com/pay/). An address that does not redirect has no location value, and a Location header on the page finally read is not recorded. Only a 3xx status with a Location header is followed, never a <meta> refresh or a script. Cookies are set-cookie:<name>, and only their security attributes are kept, never their value.
value*|The value as last seen, normalized so a reordered or re-nonced value is not a change, or null once the header is no longer sent.
kind*stringWhat the name stands for. header: an HTTP response header. cookie: the security attributes of one cookie. meta: a policy set in a <meta> tag.
"header""cookie""meta"change*|The latest change a scan saw on it. appeared: it was seen for the first time, which is how the first scan of an address lists everything it reads. changed: its value is different. removed: it stopped being sent. reappeared: it is sent again after a scan had recorded it removed. null only once that record is older than the history kept. A decision does not reset it.
approvedValue*|The value a person last approved, to compare value against. null when no value is approved: nobody approved it yet, the approval was withdrawn by a rejection, or what was approved is the header not being sent, which approvedAbsent tells apart.
approvedAbsent*booleantrue when what a person last approved is the header not being sent: they approved its removal, and the approval still stands. approvedValue is then null, and a header that comes back is compared with that approved absence. false when a value is approved, when nobody decided yet, or after a rejection.
valueHash*stringIdentifies the current value. A decision sends it back, so it applies only to the value you reviewed.
status*stringapproved: a person approved the current value. needs_review: nobody decided on the current value yet, because it is new or because it changed since the last approval. rejected: someone recorded that this value should not be served.
"approved""needs_review""rejected"stillSent*booleantrue when the value is rejected and the page still sent it at the last scan that read the page. It puts the website's header side in action_needed until the page stops sending it or the value changes, which sends it back to review. While the address is failing, it says what the last successful read saw.
justification*|Why the current value is approved, or null while status is not approved. A decision on an earlier value is in the header's history, never here.
approvedBy*|Identifier of the person who approved the current value, or null once their account is deleted.
approvedByName*|Who approved the current value, as recorded with the approval and kept after their account is deleted.
approvedByEmail*|The email of who approved the current value.
approvedByPicture*|The picture the person who approved the current value has today, or null when they have none or their account is deleted. The name and email are the ones recorded with the decision; the picture is not.
approvedByDeleted*booleantrue when the person who approved the current value can no longer be named.
approvedAt*|When the current value was approved.
rejectionReason*|Why the current value was rejected, or null while status is not rejected.
rejectedBy*|Identifier of the person who rejected the current value, or null once their account is deleted.
rejectedByName*|Who rejected the current value, as recorded with the rejection and kept after their account is deleted.
rejectedByEmail*|The email of who rejected the current value.
rejectedByPicture*|The picture the person who rejected the current value has today, or null when they have none or their account is deleted. The name and email are the ones recorded with the decision; the picture is not.
rejectedByDeleted*booleantrue when the person who rejected the current value can no longer be named.
rejectedAt*|When the current value was rejected.
firstSeen*stringWhen a scan first recorded the header.
date-timechangedAt*stringWhen a scan last recorded a different value. Equal to firstSeen while the value never changed, in which case change is appeared. A decision does not move it.
date-timecurl -X POST 'https://api.centralcsp.com/v1/workspaces/01936b7a-6f2e-7c31-9a4d-2f8e1c5b7d90/websites/01936b7a-6f2e-7c31-9a4d-2f8e1c5b7d90/compliance/headers/01936b7a-6f2e-7c31-9a4d-2f8e1c5b7d90/reject' \ -H 'Content-Type: application/json' \ -d '{ "valueHash": "9f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08", "reason": "Not part of any release. Reported to the hosting team."}'{ "id": "01990b7e-4c1a-7d2e-9b3f-5a6c7d8e9f03", "addressId": "01990b7e-4c1a-7d2e-9b3f-5a6c7d8e9f03", "url": "https://shop.example.com/checkout", "addressName": "Checkout", "name": "content-security-policy", "value": "default-src 'self'; script-src 'self' https://js.stripe.com", "kind": "header", "change": "changed", "approvedValue": "default-src 'self'; script-src 'self' https://js.stripe.com", "approvedAbsent": false, "valueHash": "9f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08", "status": "needs_review", "stillSent": false, "justification": "Stripe.js added for the new checkout, reviewed by security.", "approvedBy": "3f6c2a1e-8b4d-4e7a-9c1f-5d2b7e8a0c43", "approvedByName": "Alex Martin", "approvedByEmail": "alex@example.com", "approvedByPicture": "https://lh3.googleusercontent.com/a/example", "approvedByDeleted": true, "approvedAt": "2026-11-02T15:15:00.000Z", "rejectionReason": "Nobody on the team added this script source.", "rejectedBy": "3f6c2a1e-8b4d-4e7a-9c1f-5d2b7e8a0c43", "rejectedByName": "Alex Martin", "rejectedByEmail": "alex@example.com", "rejectedByPicture": "https://lh3.googleusercontent.com/a/example", "rejectedByDeleted": true, "rejectedAt": "2026-11-02T15:15:00.000Z", "firstSeen": "2026-11-02T15:15:00.000Z", "changedAt": "2026-11-02T15:15:00.000Z"}