Proteção XSRF usando Rails e AngularJS
class ApplicationController < ActionController::Base protect_from_forgery # Manually check authenticity using the X-XSRF-TOKEN. # AngularJS will automatically send this header if the cookie # set below is found. skip_before_filter :verify_authenticity_token, :if …
Continuar lendo