class Ktistec::CSRF
- Ktistec::CSRF
- Kemal::Handler
- Reference
- Object
Overview
CSRF preventing middleware.
Defined in:
framework/csrf.crConstructors
Instance Method Summary
Constructor Detail
def self.new(header : String = "X-CSRF-Token", allowed_routes : Array(String) = [] of String, allowed_methods : Array(String) = ["GET", "HEAD", "OPTIONS", "TRACE"] of ::String, enforced_content_types : Array(String) = ["application/x-www-form-urlencoded", "multipart/form-data", "text/plain"] of ::String, parameter_name : String = "authenticity_token", error : String | HTTP::Server::Context -> String = "Forbidden (CSRF)")
#