aboutsummaryrefslogtreecommitdiffstats
path: root/lib/action_cable/server
diff options
context:
space:
mode:
authorPratik <pratiknaik@gmail.com>2015-10-12 18:14:57 -0500
committerPratik <pratiknaik@gmail.com>2015-10-12 18:14:57 -0500
commita6ee365703bbee67db7091e6209be29733d034cd (patch)
tree3588a8b7846209912eb01c67e72d2c32c39a0f56 /lib/action_cable/server
parentd222f7de572f28fc2fa185e9f21cac6f7e6c84f0 (diff)
parentecab8314eba8519bd593cbc097ef60ee0c285cf2 (diff)
downloadrails-a6ee365703bbee67db7091e6209be29733d034cd.tar.gz
rails-a6ee365703bbee67db7091e6209be29733d034cd.tar.bz2
rails-a6ee365703bbee67db7091e6209be29733d034cd.zip
Merge pull request #85 from rails/cross-site-forgery-protection
Add support for cross site forgery protection
Diffstat (limited to 'lib/action_cable/server')
-rw-r--r--lib/action_cable/server/configuration.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/action_cable/server/configuration.rb b/lib/action_cable/server/configuration.rb
index ac9fa7b085..315782ec3e 100644
--- a/lib/action_cable/server/configuration.rb
+++ b/lib/action_cable/server/configuration.rb
@@ -6,6 +6,7 @@ module ActionCable
attr_accessor :logger, :log_tags
attr_accessor :connection_class, :worker_pool_size
attr_accessor :redis_path, :channels_path
+ attr_accessor :disable_request_forgery_protection, :allowed_request_origins
def initialize
@logger = Rails.logger
@@ -16,6 +17,8 @@ module ActionCable
@redis_path = Rails.root.join('config/redis/cable.yml')
@channels_path = Rails.root.join('app/channels')
+
+ @disable_request_forgery_protection = false
end
def channel_paths