Skip to content
/ nofloc Public

Middleware to block Google FLoC tracking in Express or Koa

License

Notifications You must be signed in to change notification settings

oboz/nofloc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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());