fixup base controller
This commit is contained in:
parent
118242dbd2
commit
c248f96f31
1 changed files with 0 additions and 2 deletions
|
@ -1,6 +1,4 @@
|
|||
class API::V2::BaseController < ApplicationController
|
||||
# Disable forgery protection for API controllers when the request is authenticated
|
||||
# with a bearer token. Otherwise the session will be nullified and we'll lose curent_user
|
||||
skip_forgery_protection if: -> { request.headers.key?('HTTP_AUTHORIZATION') }
|
||||
skip_before_action :setup_tracking
|
||||
before_action :authenticate_from_token
|
||||
|
|
Loading…
Add table
Reference in a new issue