[Rails] ActionController::InvalidAuthenticityToken when useing Rails4 as API
change
protect_from_forgery with: :exception
to
protect_from_forgery with: :null_session
in ApplicationController
change
protect_from_forgery with: :exception
to
protect_from_forgery with: :null_session
in ApplicationController