# Review CSP Reports Without Retaining Private URL Data

https://ferkesh.net/knowledgebase/article/csp-report-only-redact-private-url-data

A Content Security Policy report can include page and resource URLs. Review those fields with synthetic data before collecting reports from production users.

![Workflow. Choose synthetic routes. Inspect one report. Minimize retained fields. Verify useful signals.](https://ferkesh.net/kb-media/ferkesh-guide-diagrams-batch-16d.svg#csp-report-only-redact-private-url-data)

## Choose a private test and a narrow event

Use an owned staging hostname and a harmless resource your test policy is intended to flag. Leave its enforced policy in place. Set up the separate report-only policy and approved reporting endpoint using your supported platform.

## Inspect a synthetic report

Trigger one violation on a controlled test route and look at the actual report sent by the browser. Note which document, source and blocked-resource fields appear. Use a harmless placeholder in any test query and see whether the collector, proxy or error service logs it.

## Define what the collector keeps

Ask the privacy and site owners which fields are needed. Prefer aggregate counts and sanitized route labels. Restrict raw report access and retention. Avoid script samples and sensitive URL components unless a documented review justifies them.

## Verify useful security feedback with minimized data

Repeat the fixture and confirm the team can still identify the policy and resource category after redaction. Check logs at each layer and record the effective retention and access policy.

## Related guides

- [How to Compare HTTPS at the Edge and at the Origin](https://ferkesh.net/knowledgebase/article/edge-vs-origin-https)
- [What a Website Access Log Records](https://ferkesh.net/knowledgebase/article/understand-web-server-access-logs)

## Official references

- [MDN report-only policy and reporting setup](https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/Content-Security-Policy-Report-Only)
- [OWASP guidance on sensitive values in logs](https://cheatsheetseries.owasp.org/cheatsheets/Logging_Cheat_Sheet.html)

Ferkesh Hosting. Last reviewed November 27, 2026.
