I'm confused about the csrf token and these kind of stuffs..
I googled that
skip_before_action :verify_authenticity_token
this will skip the csrf issues for restapi
so i made a code like this in application_controller.rb
skip_before_action :verify_authenticity_token, :if => :json_request?
def json_request?
request.format.json?
end
but my question is, is this all really all done? isn't this csrf token is for security protect? can i just skip this critical feature?