Sha256: 6cd920c7c0d5dc0f8c0693d59f0991da651029a2e0acdc91519881b6efcda711
Contents?: true
Size: 417 Bytes
Versions: 4
Compression:
Stored size: 417 Bytes
Contents
# frozen_string_literal: true module AAF module SecureHeaders class DisableSecureHeadersForErrorPages def initialize(app) @app = app end def call(env) @app.call(env).tap do |(status, _, _)| next if status < 400 request = ActionDispatch::Request.new(env) ::SecureHeaders.opt_out_of_all_protection(request) end end end end end
Version data entries
4 entries across 4 versions & 1 rubygems