Sha256: b57014dcd0abb90ead8cffe8b969a123bb22485aafb29fad3e0195c89588cc3f

Contents?: true

Size: 501 Bytes

Versions: 54

Compression:

Stored size: 501 Bytes

Contents

module GovukPublishingComponents
  class ApplicationController < ActionController::Base
    helper ::Rails.application.helpers
    include Slimmer::Headers
    protect_from_forgery with: :exception
    before_action :set_custom_slimmer_headers
    before_action :set_x_frame_options_header

  private

    def set_custom_slimmer_headers
      set_slimmer_headers(remove_search: true)
    end

    def set_x_frame_options_header
      response.headers["X-Frame-Options"] = "ALLOWALL"
    end
  end
end

Version data entries

54 entries across 54 versions & 1 rubygems

Version Path
govuk_publishing_components-11.2.0 app/controllers/govuk_publishing_components/application_controller.rb
govuk_publishing_components-11.1.0 app/controllers/govuk_publishing_components/application_controller.rb
govuk_publishing_components-11.0.0 app/controllers/govuk_publishing_components/application_controller.rb
govuk_publishing_components-10.2.0 app/controllers/govuk_publishing_components/application_controller.rb
govuk_publishing_components-10.1.0 app/controllers/govuk_publishing_components/application_controller.rb
govuk_publishing_components-10.0.0 app/controllers/govuk_publishing_components/application_controller.rb
govuk_publishing_components-9.28.0 app/controllers/govuk_publishing_components/application_controller.rb
govuk_publishing_components-9.27.0 app/controllers/govuk_publishing_components/application_controller.rb
govuk_publishing_components-9.26.1 app/controllers/govuk_publishing_components/application_controller.rb
govuk_publishing_components-9.26.0 app/controllers/govuk_publishing_components/application_controller.rb
govuk_publishing_components-9.25.0 app/controllers/govuk_publishing_components/application_controller.rb
govuk_publishing_components-9.24.0 app/controllers/govuk_publishing_components/application_controller.rb
govuk_publishing_components-9.23.0 app/controllers/govuk_publishing_components/application_controller.rb
govuk_publishing_components-9.22.0 app/controllers/govuk_publishing_components/application_controller.rb
govuk_publishing_components-9.21.0 app/controllers/govuk_publishing_components/application_controller.rb
govuk_publishing_components-9.20.0 app/controllers/govuk_publishing_components/application_controller.rb
govuk_publishing_components-9.19.0 app/controllers/govuk_publishing_components/application_controller.rb
govuk_publishing_components-9.18.0 app/controllers/govuk_publishing_components/application_controller.rb
govuk_publishing_components-9.17.1 app/controllers/govuk_publishing_components/application_controller.rb
govuk_publishing_components-9.17 app/controllers/govuk_publishing_components/application_controller.rb