闭社主体 forked from https://github.com/tootsuite/mastodon
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

9 lines
276 B

  1. # frozen_string_literal: true
  2. class Api::Web::BaseController < Api::BaseController
  3. protect_from_forgery with: :exception
  4. rescue_from ActionController::InvalidAuthenticityToken do
  5. render json: { error: "Can't verify CSRF token authenticity." }, status: 422
  6. end
  7. end