express middleware that prevents access to sourcemap files
$ npm install --save express-protect-maps-middleware
Below is a example of usage.
var express = require('express');
var mapsMiddleware = require('express-protect-maps-middleware');
var app = express();
app.use(mapsMiddleware(['your.company.ip', 'error.monitoring.service.ip']), '/assets/');
Variables provided with the error object:
err.status
HTTP statusCode403