chore: Suppress the unnecessary CSRF warning (#2606)
Suppress the unnecessary CSRF warning
This commit is contained in:
@@ -1,6 +1,4 @@
|
||||
class PlatformController < ActionController::Base
|
||||
protect_from_forgery with: :null_session
|
||||
|
||||
class PlatformController < ActionController::API
|
||||
before_action :ensure_access_token
|
||||
before_action :set_platform_app
|
||||
before_action :set_resource, only: [:update, :show, :destroy]
|
||||
|
||||
Reference in New Issue
Block a user