@itznotabug/appexpress-nocookies
v0.0.4
Published
A cookie remover middleware for AppExpress.
Readme
AppExpress No-Cookies Middleware
This module allows you to serve resources without any cookies.
Any key in the headers containing the word cookie will be stripped from both incoming requests and outgoing
responses.
Installation
Add the middleware like this -
npm install @itznotabug/appexpress-nocookiesUsage
// import
import AppExpress from '@itznotabug/appexpress';
import noCookies from '@itznotabug/appexpress-nocookies';
// setup
const express = new AppExpress();
express.middleware(noCookies({ excludes: ['/cookie-allowed'] }));