APITools
Generate a Subresource Integrity hash
Fetches a script or stylesheet and returns the integrity value to put on its tag, so the browser refuses the file if it ever changes. Requires no authentication.
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
url*string
URL of the script or stylesheet to hash.
Format
uriLength
1 <= lengthResponse Body
application/json
curl -X POST "https://api-next.centralcsp.com/v1/tools/sri" \ -H "Content-Type: application/json" \ -d '{ "url": "https://cdn.example.com/app.js" }'{}Analyze a CSP policy POST
Reviews a Content-Security-Policy header value and reports what each directive does and where the policy is weak, for example an unsafe keyword or an overly...
Get workspace usage GET
Returns how many reports the workspace has accepted this period, the plan limit, and whether the subscription is active.