Permalink
Browse files

CSP endpoint only accepts POST requests. Fixes Rails 4 compatibility.

  • Loading branch information...
1 parent 2f318b5 commit e7cc7fa6782beff50b835371ec23c6c9a1e1afa3 @jviney jviney committed Feb 3, 2013
Showing with 2 additions and 2 deletions.
  1. +2 −2 config/routes.rb
View
@@ -1,3 +1,3 @@
Rails.application.routes.draw do
- match SecureHeaders::ContentSecurityPolicy::FF_CSP_ENDPOINT => "content_security_policy#scribe"
-end
+ post SecureHeaders::ContentSecurityPolicy::FF_CSP_ENDPOINT => "content_security_policy#scribe"
+end

0 comments on commit e7cc7fa

Please sign in to comment.