Clack.Middleware.Csrf - Middleware for easy CSRF protection.

SYNOPSIS

;; building application.  
(builder <clack-middleware-csrf> app)  
 
;; in CL-EMB template.  
<form name="test-form" method="post" action="/">  
<input type="text" name="name" />  
<%= (csrf-html-tag session) %>  
<input type="submit" value="Send" />  
</form> 

DESCRIPTION

Block behavior

(builder  
 <clack-middleware-session>  
 (<clack-middleware-csrf>  
  :block-app #'(lambda (env)  
                 @ignore env  
                 '(302  
                   (:location "http://en.wikipedia.org/wiki/CSRF")  
                   nil)))  
 app) 

AUTHOR

SEE ALSO

EXTERNAL SYMBOLS