How to use the perimeterx-node-core.PxEnforcer function in perimeterx-node-core

To help you get started, we’ve selected a few perimeterx-node-core examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github PerimeterX / perimeterx-node-express / lib / pxenforcer.js View on Github external
constructor(params) {
        params.moduleVersion = MODULE_VERSION;
        const pxClient = new PxExpressClient();
        this.enforcer = new PxEnforcer(params, pxClient);

        if (this.enforcer.config.conf.DYNAMIC_CONFIGURATIONS) {
            setInterval(
                this.enforcer.config.confManager.loadData.bind(this.enforcer.config.confManager),
                this.enforcer.config.conf.CONFIGURATION_LOAD_INTERVAL
            );
        }

        this.middleware = this.newMiddleware();
    }

perimeterx-node-core

PerimeterX NodeJS shared core for various applications to monitor and block traffic according to PerimeterX risk score

MIT
Latest version published 11 months ago

Package Health Score

62 / 100
Full package analysis