Skip to content

Cache HTML containing CSRF protection tokens without worrying

Notifications You must be signed in to change notification settings

ekampp/cacheable-csrf-token-rails

This branch is 3 commits ahead of cmer/cacheable-csrf-token-rails:master.

Folders and files

NameName
Last commit message
Last commit date

Latest commit

9eda5c6 · Oct 25, 2020

History

8 Commits
Oct 25, 2020
Sep 13, 2012
Mar 21, 2013
Oct 25, 2020

Repository files navigation

Cacheable CSRF Token for Rails

Cache HTML containing CSRF protection tokens without worrying

CacheableCSRFToken allows you to easily cache Ruby on Rails pages or partials containing a CSRF protection token. The user-specific token will inserted in the HTML before the response is sent to the user.

Usage

  1. Add cacheable-csrf-token-rails to your Gemfile
  2. Add this line in ApplicationController: include CacheableCSRFTokenRails

About

Cache HTML containing CSRF protection tokens without worrying

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Ruby 100.0%