Public Instance methods
csrf_field()
The name of the hidden/meta csrf tag.
[show source]
# File lib/roda/plugins/csrf.rb 56 def csrf_field 57 CSRF.field 58 end
csrf_header()
The http header name to use for submitting csrf token via headers.
[show source]
# File lib/roda/plugins/csrf.rb 61 def csrf_header 62 CSRF.header 63 end
csrf_metatag(opts={})
An html meta tag string containing the token.
[show source]
# File lib/roda/plugins/csrf.rb 66 def csrf_metatag(opts={}) 67 CSRF.metatag(env, opts) 68 end
csrf_tag()
An html hidden input tag string containing the token.
[show source]
# File lib/roda/plugins/csrf.rb 71 def csrf_tag 72 CSRF.tag(env) 73 end
csrf_token()
The value of the csrf token.
[show source]
# File lib/roda/plugins/csrf.rb 76 def csrf_token 77 CSRF.token(env) 78 end