|
|
@ -37,6 +37,9 @@ class ResponseSystemMiddleware extends Injectable {
|
|
|
|
this.request = request
|
|
|
|
this.request = request
|
|
|
|
this.old_status = response.status.bind(response)
|
|
|
|
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') ) {
|
|
|
|
if ( app.di().has('views') && app.di().has('express') ) {
|
|
|
|
response.view = this.view.bind(this)
|
|
|
|
response.view = this.view.bind(this)
|
|
|
|
response.error = this.error.bind(this)
|
|
|
|
response.error = this.error.bind(this)
|
|
|
|