Skip to content

Commit 25b9667

Browse files
committed
remove forgery statements from metrics controllers
1 parent dad4785 commit 25b9667

File tree

2 files changed

+0
-6
lines changed

2 files changed

+0
-6
lines changed

app/controllers/better_together/metrics/link_clicks_controller.rb

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,6 @@
44
module BetterTogether
55
module Metrics
66
class LinkClicksController < ApplicationController # rubocop:todo Style/Documentation
7-
# Disable CSRF protection for API endpoints if using token-based auth
8-
protect_from_forgery with: :null_session
9-
107
def create
118
url = params[:url]
129
page_url = params[:page_url] # Get the page URL where the link was clicked

app/controllers/better_together/metrics/shares_controller.rb

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,6 @@
44
module BetterTogether
55
module Metrics
66
class SharesController < ApplicationController # rubocop:todo Style/Documentation
7-
# Disable CSRF protection for API endpoints if using token-based auth
8-
protect_from_forgery with: :null_session
9-
107
def create # rubocop:todo Metrics/AbcSize
118
platform = params[:platform]
129
url = params[:url]

0 commit comments

Comments
 (0)