18F/identity-idp

View on GitHub
app/controllers/concerns/api/csrf_token_concern.rb

Summary

Maintainability
A
0 mins
Test Coverage
# frozen_string_literal: true

module Api
  module CsrfTokenConcern
    def add_csrf_token_header_to_response
      response.set_header('X-CSRF-Token', form_authenticity_token)
    end
  end
end