Secrets & Exposure
medium Severity
Free Check

Public Source Map (.js.map) Exposure

Detects public .js.map files that reveal un-minified TypeScript/JavaScript source code and internal business logic.

Test Your Website for Public Source Map (.js.map) Exposure

Run this check along with 90+ automated tests across your domain.

Why It Matters

Publishing source maps gives attackers your original un-minified code, comments, and internal API routes.

How We Check This

We inspect script tags for sourceMappingURL comments and test whether the corresponding .map files are readable.

How to Fix & Implement

Copy-paste configuration blocks tailored for your web server or edge proxy.

nginx snippet
location ~* .map$ { deny all; return 404; }

Frequently Asked Questions

Can I use Sentry without public source maps?

Yes! Upload source maps directly to Sentry during your CI build and delete the .map files before deploying.