From d6c06eb547e45cce97930e528aed2705574e43a3 Mon Sep 17 00:00:00 2001 From: Sam Date: Thu, 7 May 2015 10:42:21 +1000 Subject: [PATCH] Get rid of CSRF errors --- config/initializers/logster.rb | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/config/initializers/logster.rb b/config/initializers/logster.rb index c1d862dba95..013e1b3c362 100644 --- a/config/initializers/logster.rb +++ b/config/initializers/logster.rb @@ -20,14 +20,9 @@ if Rails.env.production? # /(?m).*?Line: (?:\D|0).*?Column: (?:\D|0)/, - # suppress trackback spam bots - Logster::IgnorePattern.new("Can't verify CSRF token authenticity", { REQUEST_URI: /\/trackback\/$/ }), - # suppress trackback spam bots submitting to random URLs - # test for the presence of these params: url, title, excerpt, blog_name - Logster::IgnorePattern.new("Can't verify CSRF token authenticity", { params: { url: /./, title: /./, excerpt: /./, blog_name: /./} }), - - # API calls, TODO fix this in rails - Logster::IgnorePattern.new("Can't verify CSRF token authenticity", { REQUEST_URI: /api_key/ }) + # CSRF errors are not providing enough data + # suppress unconditionally for now + /^Can't verify CSRF token authenticity$/ ] end