Sha256: 70cfda03fed4a4bc3374880a5e244033fd1ca69199fdc9c4104056ac3bd778b0
Contents?: true
Size: 756 Bytes
Versions: 16
Compression:
Stored size: 756 Bytes
Contents
module Ixtlan module Core module XContentHeaders protected def x_content_headers(mode = nil) case mode || self.class.instance_variable_get(:@_x_content_headers) || Rails.configuration.x_content_headers || :nosniff when :nosniff response.headers["X-Content-Type-Options"] = "nosniff" when :off else warn "allowed values for x_content_headers are :nosniff, :off" end end def self.included(base) base.class_eval do def self.x_content_headers(mode) if(mode) @_x_content_headers = mode.to_sym else @_x_content_headers = nil end end end end end end end
Version data entries
16 entries across 8 versions & 1 rubygems