module Lucky::ProtectFromForgery

Overview

Protect from CSRF attacks

This module is automatically included in BrowserAction to protect from CSRF attacks.

Defined in:

lucky/protect_from_forgery.cr

Constant Summary

ALLOWED_METHODS = ["GET", "HEAD", "OPTIONS", "TRACE"] of ::String
PARAM_KEY = "_csrf"
SESSION_KEY = "X-CSRF-TOKEN"