chore: Suppress the unnecessary CSRF warning (#2606)

Suppress the unnecessary CSRF warning
This commit is contained in:
Sojan Jose
2021-07-14 18:40:24 +05:30
committed by GitHub
parent dfddf9cacc
commit a5bc81b304
13 changed files with 11 additions and 9 deletions

View File

@@ -1,3 +1,5 @@
# TODO: we should switch to ActionController::API for the base classes
# One of the specs is failing when I tried doing that, lets revisit in future
class PublicController < ActionController::Base
skip_before_action :verify_authenticity_token
end