Skip to content

Latest commit

 

History

History
28 lines (17 loc) · 433 Bytes

README.md

File metadata and controls

28 lines (17 loc) · 433 Bytes

nofloc

Middleware to block Google FLoC tracking in Express and Koa

Middleware add of modify permissions-policy header for blocking FLoC.

Install

Run npm install nofloc --save to add package.

Usage for Express

const { noflocExpress } = require("nofloc");

// some code...

app.use(noflocExpress());

Usage for Koa

const { noflocKoa } = require("nofloc");

// some code...

app.use(noflocKoa());