@itznotabug/appexpress-nocookies

0.0.4 • Public • Published

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-nocookies

Usage

// import
import AppExpress from '@itznotabug/appexpress';
import noCookies from '@itznotabug/appexpress-nocookies';

// setup
const express = new AppExpress();

express.middleware(noCookies({ excludes: ['/cookie-allowed'] }));

Readme

Keywords

none

Package Sidebar

Install

npm i @itznotabug/appexpress-nocookies

Weekly Downloads

0

Version

0.0.4

License

Apache-2.0

Unpacked Size

2.54 kB

Total Files

3

Last publish

Collaborators

  • itznotabug