Prevent JSON filter usage for CORS API requests

This commit is contained in:
Thibault Jouan 2015-05-03 19:52:29 +00:00
parent b642666728
commit abb20c89ad

View File

@ -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