actionpack/lib/action_controller/metal/request_forgery_protection.rb
# Creates a masked version of the authenticity token that varies
# on each request. The masking is used to mitigate SSL attacks
# like BREACH.
Creates a masked version of the authenticity token that varies
on each request. The masking is used to mitigate SSL attacks
like BREACH.
Creates a masked version of the authenticity token that varies on each request . The masking is used to mitigate SSL attacks like BREACH .
def masked_authenticity_token(form_options: {})
        action, method = form_options.values_at(:action, :method)
        raw_token = if per_form_csrf_tokens && action && method
          action_path = normalize_action_path(action)
          per_form_csrf_token(nil, action_path, method)
        else
          global_csrf_token
        end
        mask_token(raw_token)
      end
def masked_authenticity_token ( form_options : { } ) action , method = form_options . values_at ( :action , :method ) raw_token = if per_form_csrf_tokens && action && method action_path = normalize_action_path ( action ) per_form_csrf_token ( nil , action_path , method ) else global_csrf_token end mask_token ( raw_token ) end
Creates a masked version of the authenticity token that varies
on each request.
Creates a masked version of the authenticity token that varies on each request .
form_options
<not_specific>