I can see the authenticity_token in the form parameters when I post yet I am getting this error message:
Started POST "/helloasdf/destroy_task?id=29" for 127.0.0.1 at 2017-08-19 21:12:14 -0400
Processing by TaskController#destroy_task as JS
Parameters: {"authenticity_token"=>"XXXX", "id"=>"29", "task_url"=>"helloasdf"}
Can't verify CSRF token authenticity.
Completed 422 Unprocessable Entity in 1ms (ActiveRecord: 0.0ms)
(I changed the token to XXXX).
What exactly is the problem or what am I doing wrong?
My ApplicationController has:
class ApplicationController < ActionController::Base
protect_from_forgery with: :exception