Module: Vidibus::Xss::Extensions::Controller

Extended by:
ActiveSupport::Concern
Defined in:
lib/vidibus/xss/extensions/controller.rb

Instance Method Summary collapse

Instance Method Details

#xss_clientsObject

Set hostname of clients that are allowed to access this resource.



17
18
19
# File 'lib/vidibus/xss/extensions/controller.rb', line 17

def xss_clients
  @xss_clients ||= [request.headers["Origin"]]
end