# Content Security Policy analyzer

> Explain pasted directives and identify common configuration issues.

[Open tool](https://www.toolcabana.com/cu/content-security-policy-analyzer) · [Privacy and security education](https://www.toolcabana.com/cu/category/privacy-and-security-education)

Tool ID: content-security-policy-analyzer. Requested language: cu. Description language: en. Complete guide translation: no; untranslated sections use English.

## Overview (en)

Content Security Policy analyzer splits a pasted CSP into directives and lists each with its values and a review note. It flags 'unsafe-inline', 'unsafe-eval', bare wildcard sources, 'none' combined with other sources, and duplicate directives, and adds rows when object-src, base-uri or frame-ancestors is missing. Results are static heuristics for learning and review.

## Supported tasks (en)

Explain pasted directives and identify common configuration issues.

## Steps (en)

1. Paste the source into the input editor, or load the built-in example.
2. Check the source format before running the operation.
3. Run content security policy analyzer, review the output, then use the available copy or download controls.

## Settings

No additional settings.

## Limitations (en)

CSV/XLSX inputs are capped at 10 MB each, 200 columns and 20,000 rows; joined output is capped at 20,000 rows. JSONPath script/filter evaluation is disabled. Other operations apply their visible controls and text limits.

## Example input

```text
default-src 'self'; script-src 'self'; object-src 'none'; base-uri 'self'; frame-ancestors 'none'
```

## Privacy and connections (en)

This operation processes its source in your browser. Copy and download are explicit actions; source input is not saved in an account or history.

## Questions (en)

### What happens if a CSP has the same directive twice?

The analyzer marks the repeat as a duplicate and notes that browsers use the first occurrence, so values in the later copy are ignored. Merge the sources into a single directive to make the policy behave as intended.

### Why does the CSP analyzer warn that object-src is missing?

object-src, base-uri and frame-ancestors are checked separately as common hardening directives. If one is absent, a row marked missing suggests reviewing whether an explicit restriction is needed; the check does not account for any default-src fallback.

### Should I paste the full header line including Content-Security-Policy:?

Paste only the policy value. Directives are split on semicolons and the first word of each is read as the directive name, so a header prefix would be treated as the first directive's name. Up to 100 directives are accepted.

### Where is my input processed?

This operation processes its source in your browser. Copy and download are explicit actions; source input is not saved in an account or history.

### What are the input limits?

CSV/XLSX inputs are capped at 10 MB each, 200 columns and 20,000 rows; joined output is capped at 20,000 rows. JSONPath script/filter evaluation is disabled. Other operations apply their visible controls and text limits.

## Related tools

- [File encryption and decryption](https://www.toolcabana.com/cu/file-encryption-and-decryption)
- [Password strength estimator](https://www.toolcabana.com/cu/password-strength-estimator)
- [Sensitive data masking tool](https://www.toolcabana.com/cu/sensitive-data-masking-tool)
- [Certificate signing request decoder](https://www.toolcabana.com/cu/certificate-signing-request-decoder)
