Skip to content

Commit

Permalink
temporary workaround
Browse files Browse the repository at this point in the history
  • Loading branch information
scarroll32 committed Jun 7, 2018
1 parent 6d5d5a8 commit 9fec8d6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions app/controllers/application_controller.rb
@@ -1,6 +1,8 @@
# frozen_string_literal: true
class ApplicationController < ActionController::Base
#protect_from_forgery
#protect_from_forgery with: :exception, prepend: true
skip_before_action :verify_authenticity_token, raise: false
include Pundit
rescue_from Pundit::NotAuthorizedError, with: :not_authorized_or_login
after_action :participant_activity
Expand Down
2 changes: 1 addition & 1 deletion config/initializers/new_framework_defaults.rb
Expand Up @@ -14,7 +14,7 @@
Rails.application.config.action_controller.per_form_csrf_tokens = false

# Enable origin-checking CSRF mitigation. Previous versions had false.
Rails.application.config.action_controller.forgery_protection_origin_check = false
#Rails.application.config.action_controller.forgery_protection_origin_check = false

# Make Ruby 2.4 preserve the timezone of the receiver when calling `to_time`.
# Previous versions had false.
Expand Down

0 comments on commit 9fec8d6

Please sign in to comment.