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