Browse Source

Opt-out of FLoC

master
Garrett Mills 3 weeks ago
parent
commit
374ac7ca3a
Signed by: garrettmills GPG Key ID: D2BF5FBA8298F246
1 changed files with 3 additions and 0 deletions
  1. +3
    -0
      routing/ResponseSystemMiddleware.js

+ 3
- 0
routing/ResponseSystemMiddleware.js View File

@ -37,6 +37,9 @@ class ResponseSystemMiddleware extends Injectable {
this.request = request
this.old_status = response.status.bind(response)
// FLoC off, Google.
response.set('Permissions-Policy', 'interest-cohort=()')
if ( app.di().has('views') && app.di().has('express') ) {
response.view = this.view.bind(this)
response.error = this.error.bind(this)


Loading…
Cancel
Save