Protect root_path from forgery with null_session
Some proxies query OPTIONS for / to see if the page is alive.
This commit is contained in:
parent
36f3730846
commit
976616b47b
1 changed files with 1 additions and 0 deletions
|
|
@ -1,4 +1,5 @@
|
|||
class ConferenceController < ApplicationController
|
||||
protect_from_forgery with: :null_session
|
||||
before_filter :respond_to_options
|
||||
load_and_authorize_resource find_by: :short_title
|
||||
load_resource :program, through: :conference, singleton: true, except: :index
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue