5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2024-11-17 22:26:23 +00:00

fix: no buscar csrf

This commit is contained in:
f 2024-02-21 16:42:02 -03:00
parent f517889992
commit f8f0eb9d3c
No known key found for this signature in database

View file

@ -9,6 +9,8 @@ module Api
extend ActiveSupport::Concern extend ActiveSupport::Concern
included do included do
skip_before_action :verify_authenticity_token
# Responde con forbidden si falla la validación del token # Responde con forbidden si falla la validación del token
rescue_from ActiveRecord::RecordNotFound, with: :platforms_answer rescue_from ActiveRecord::RecordNotFound, with: :platforms_answer
rescue_from ActiveRecord::RecordInvalid, with: :platforms_answer rescue_from ActiveRecord::RecordInvalid, with: :platforms_answer