setup rails ApplicationController to read/set XSRF-TOKEN Cookie. Delete csrf_meta_tags in application.html.erb.