Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

fastify-floc-off

Package Overview
Dependencies
Maintainers
1
Versions
28
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fastify-floc-off

Fastify plugin to opt out of Google's FLoC advertising-surveillance network

  • 1.0.1
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
23
decreased by-45.24%
Maintainers
1
Weekly downloads
 
Created
Source

fastify-floc-off

GitHub Release npm version Build Status Coverage Status Known Vulnerabilities code style: prettier

Fastify plugin to opt-out of Google's FLoC advertising-surveillance network

Intro

The fastify-floc-off plugin sets the following response header and values to opt-out of Google's FLoC advertising-surveillance network:

Permissions-Policy: interest-cohort=()

You can read more about the issues surrounding Google's FLoC on EFF and Plausible Analytics.

Helmet (and in turn fastify-helmet) does not currently support Permissions-Policy response header setting yet, so this plugin was created out of a need for an easy way to disable/opt-out of Google's FLoC network for systems at Yeovil District Hospital NHS Foundation Trust. This ensures both patients and staff accessing web applications at the hospital are not subject to Google's unsolicited tracking.

Installation

Install using npm:

npm install fastify-floc-off

Or yarn:

yarn add fastify-floc-off

fastify-floc-off's test scripts use npm commands.

Example Usage

const Fastify = require("fastify");
const flocOff = require("fastify-floc-off");

const server = Fastify();
server.register(flocOff);

server.get("/", (req, res) => {
	res.send("ok");
});

server.listen(3000);

Contributing

Please see CONTRIBUTING.md for more details regarding contributing to this project.

License

fastify-floc-off is licensed under the MIT license.

Keywords

FAQs

Package last updated on 06 May 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc