Package Exports
- express-acsecure
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (express-acsecure) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
express-acsecure
Access Secure middleware for Express (node), for logging, anti-spamming and black/white list...
Install
Go to https://logsecure.io, create an account and project. Remember project ID and keep project token in secret. (See images below for details)
npm i express-acsecure
Usage
app.use(bodyParser.json()); // Optional, to record request body const acsecure = require('express-acsecure'); const appId = 'myAppId'; const appToken = 'myAppToken'; const forbiddenCallback = res => res.status(403).end(); // callback for forbidden requests app.use(acsecure(appId, appToken, forbiddenCallback));