All checks
Securitymediumcsp-unsafe-evalchecked on every page we scan

CSP allows 'unsafe-eval'

"CSP allows 'unsafe-eval'" is a medium-severity security finding ShipReady reports when it observes the condition directly on your site. Fix soon. Meaningfully weakens a defence or degrades how the site works.

How ShipReady detects it

Shared tables and rules for the two halves below. Split because this check was a hybrid: nine rules read the headers of a response we already have, which genuinely differ between routes, while missing-https-redirect probes the http:// equivalent of the origin — one fact, and running it per page would issue the same request ten times.

Detection is deterministic. ShipReady reports this only when it observes the condition directly, and prefers to miss a real problem over inventing one. Rule version 1.3.0.

How to fix it

This is the prompt ShipReady puts in your report — written to be pasted straight into Cursor, Claude Code, or whichever assistant built the app.

The Content-Security-Policy allows 'unsafe-eval', which permits eval() and other string-to-code execution. Remove 'unsafe-eval' and refactor any code that relies on eval, new Function, or setTimeout/setInterval with string arguments.

Frequently asked questions

What does "CSP allows 'unsafe-eval'" mean?
"CSP allows 'unsafe-eval'" is a medium-severity security finding ShipReady reports when it observes the condition directly on your site. Fix soon. Meaningfully weakens a defence or degrades how the site works.
How serious is it?
ShipReady rates this medium. Fix soon. Meaningfully weakens a defence or degrades how the site works.
How do I fix it?
Paste the fix prompt on this page into Cursor, Claude Code or your AI editor. It is the same prompt ShipReady puts in your report.
Can I check my own site?
Yes — ShipReady scans up to ten pages of any public site for free and reports this alongside every other check. The free report lists every issue it finds and shows full evidence and a fix prompt for the critical and high-severity ones; medium and low findings are counted and unlock on Pro.

Related checks

Run this check on your site

ShipReady checks this and 193 other things across up to ten pages of your site, with an AI-ready fix for each. Free, no signup.