Module: Pakyow::Security::Pipelines::CSRF

Extended by:
Support::Pipeline
Defined in:
lib/pakyow/security/pipelines/csrf.rb

Instance Method Summary collapse

Instance Method Details

#verify_authenticity_tokenObject



18
19
20
# File 'lib/pakyow/security/pipelines/csrf.rb', line 18

def verify_authenticity_token
  config.security.csrf.protection[:authenticity].call(@connection)
end

#verify_same_originObject



14
15
16
# File 'lib/pakyow/security/pipelines/csrf.rb', line 14

def verify_same_origin
  config.security.csrf.protection[:origin].call(@connection)
end