From abb20c89ad6496da84ca935e55e1748feacbc2cd Mon Sep 17 00:00:00 2001 From: Thibault Jouan Date: Sun, 3 May 2015 19:52:29 +0000 Subject: [PATCH] Prevent JSON filter usage for CORS API requests --- app/controllers/api/application_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/api/application_controller.rb b/app/controllers/api/application_controller.rb index eeb7509..19b96a3 100644 --- a/app/controllers/api/application_controller.rb +++ b/app/controllers/api/application_controller.rb @@ -6,7 +6,7 @@ module API skip_before_filter :authenticate!, only: :cor_preflight before_filter :cor_filter - before_filter :json_filter! + before_filter :json_filter!, except: :cor_preflight def not_found head :not_found