module Roda::RodaPlugins::Csrf::InstanceMethods
Public Instance Methods
Source
# File lib/roda/plugins/csrf.rb, line 53 def csrf_field CSRF.field end
The name of the hidden/meta csrf tag.
Source
# File lib/roda/plugins/csrf.rb, line 58 def csrf_header CSRF.header end
The http header name to use for submitting csrf token via headers.
Source
# File lib/roda/plugins/csrf.rb, line 63 def csrf_metatag(opts={}) CSRF.metatag(env, opts) end
An html meta tag string containing the token.
Source
# File lib/roda/plugins/csrf.rb, line 68 def csrf_tag CSRF.tag(env) end
An html hidden input tag string containing the token.
Source
# File lib/roda/plugins/csrf.rb, line 73 def csrf_token CSRF.token(env) end
The value of the csrf token.