Skip to content

Tickaroo/express-protect-maps-middleware

Repository files navigation

express-protect-maps-middleware

npm version Build Status codecov.io

express middleware that prevents access to sourcemap files

Install

$ npm install --save express-protect-maps-middleware

Usage

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/');

Thrown Error Object

Variables provided with the error object:

  • err.status HTTP statusCode 403

About

express middleware that prevents access to sourcemap files

Resources

Stars

Watchers

Forks

Packages

No packages published