module Marten::Handlers::RequestForgeryProtection::ClassMethods

Defined in:

marten/handlers/concerns/request_forgery_protection.cr

Instance Method Summary

Instance Method Detail

def protect_from_forgery(protect : Bool) : Nil #

Allows to define whether or not the handler should be protected from Cross-Site Request Forgeries.


[View source]
def protect_from_forgery? #

Returns a boolean indicating if the handler is protected from Cross-Site Request Forgeries.


[View source]