Stop serving JavaScript source maps
exposed-source-map
Source maps let anyone rebuild your original unminified code, comments and internal endpoint names included. Stop shipping them to production.
Why this matters
Your JavaScript source maps are publicly accessible. They let anyone reconstruct your original source code — reconnaissance data, not directly exploitable.
Web servers
Frameworks
Nginx
- 1 Block access to .map files
nginx
location ~* \.map$ {
deny all;
return 404;
}Does your app still have this?
Scan your domain