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.
Add the middleware like this -
npm install @itznotabug/appexpress-nocookies
// import
import AppExpress from '@itznotabug/appexpress';
import noCookies from '@itznotabug/appexpress-nocookies';
// setup
const express = new AppExpress();
express.middleware(noCookies({ excludes: ['/cookie-allowed'] }));