Disable CSRF token verification in WebRequestsController.

This should suppress the "Can't verify CSRF token authenticity" warning.

Akinori MUSHA 10 anos atrás
pai
commit
d741802002
1 arquivos alterados com 1 adições e 0 exclusões
  1. 1 0
      app/controllers/web_requests_controller.rb

+ 1 - 0
app/controllers/web_requests_controller.rb

@@ -17,6 +17,7 @@
17 17
 
18 18
 class WebRequestsController < ApplicationController
19 19
   skip_before_filter :authenticate_user!
20
+  skip_before_action :verify_authenticity_token
20 21
 
21 22
   def handle_request
22 23
     user = User.find_by_id(params[:user_id])