Public Instance methods
csrf_field()
The name of the hidden/meta csrf tag.
[show source]
# File lib/roda/plugins/csrf.rb 53 def csrf_field 54 CSRF.field 55 end
csrf_header()
The http header name to use for submitting csrf token via headers.
[show source]
# File lib/roda/plugins/csrf.rb 58 def csrf_header 59 CSRF.header 60 end
csrf_metatag(opts={})
An html meta tag string containing the token.
[show source]
# File lib/roda/plugins/csrf.rb 63 def csrf_metatag(opts={}) 64 CSRF.metatag(env, opts) 65 end
csrf_tag()
An html hidden input tag string containing the token.
[show source]
# File lib/roda/plugins/csrf.rb 68 def csrf_tag 69 CSRF.tag(env) 70 end
csrf_token()
The value of the csrf token.
[show source]
# File lib/roda/plugins/csrf.rb 73 def csrf_token 74 CSRF.token(env) 75 end