Browse Source

Opt-out of FLoC

master
Garrett Mills 8 months ago
parent
commit
374ac7ca3a
Signed by: garrettmills GPG Key ID: D2BF5FBA8298F246
  1. 3
      routing/ResponseSystemMiddleware.js

3
routing/ResponseSystemMiddleware.js

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