Skip to content
HALOWERK

Sicherwerk

csp source policy diff

Return literal CSP directive token changes and first-directive duplicate witnesses. Local policy only.

POST https://sicher.halowerk.com/v1/csp-source-policy-diff

Inputs

Fields of the published input schema
FieldTypeRequiredDescription
beforestringYes
afterstringYes
Show full input schema
{
  "type": "object",
  "properties": {
    "before": {
      "type": "string",
      "maxLength": 4096,
      "minLength": 1
    },
    "after": {
      "type": "string",
      "maxLength": 4096,
      "minLength": 1
    }
  },
  "required": [
    "before",
    "after"
  ],
  "additionalProperties": false
}

Open original schema

Published input example

{
  "before": "default-src 'self'; script-src 'self'",
  "after": "default-src 'self'; script-src 'self' https://cdn.jsdelivr.net"
}

Result & documentation

Machine-readable documentation of this hub

Source of this page: the published HALOWERK catalog. Updated: 2026-11-18 UTC.

More endpoints in this hub

All endpoints in this hub โ†’