From ec1fd28f22e9509e21d8cedbdcfd06bfab2a5d03 Mon Sep 17 00:00:00 2001 From: baarkerlounger Date: Tue, 12 Oct 2021 15:24:59 +0100 Subject: [PATCH] Skip forgery protection for now --- app/controllers/case_logs_controller.rb | 2 ++ spec/requests/case_log_controller_spec.rb | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/app/controllers/case_logs_controller.rb b/app/controllers/case_logs_controller.rb index 2cb9d1a59..b3e1f2eec 100644 --- a/app/controllers/case_logs_controller.rb +++ b/app/controllers/case_logs_controller.rb @@ -1,4 +1,6 @@ class CaseLogsController < ApplicationController + skip_before_action :verify_authenticity_token + def index @submitted_case_logs = CaseLog.where(status: 1) @in_progress_case_logs = CaseLog.where(status: 0) diff --git a/spec/requests/case_log_controller_spec.rb b/spec/requests/case_log_controller_spec.rb index fe8a30636..7b5f7570e 100644 --- a/spec/requests/case_log_controller_spec.rb +++ b/spec/requests/case_log_controller_spec.rb @@ -5,7 +5,7 @@ RSpec.describe CaseLogsController, type: :request do let(:headers) do { "Content-Type" => "application/json", - "ACCEPT" => "application/json" + "Accept" => "application/json" } end