Module: FlocOptOut

Extended by:
ActiveSupport::Concern
Included in:
ApplicationController
Defined in:
app/controllers/concerns/floc_opt_out.rb

Instance Method Summary collapse

Instance Method Details

#floc_enabled?Boolean

Returns:

  • (Boolean)

10
11
12
# File 'app/controllers/concerns/floc_opt_out.rb', line 10

def floc_enabled?
  Gitlab::CurrentSettings.floc_enabled
end

#set_floc_opt_out_headerObject


14
15
16
# File 'app/controllers/concerns/floc_opt_out.rb', line 14

def set_floc_opt_out_header
  response.headers['Permissions-Policy'] = 'interest-cohort=()'
end