Prevent JSON filter usage for CORS API requests
This commit is contained in:
parent
b642666728
commit
abb20c89ad
@ -6,7 +6,7 @@ module API
|
|||||||
skip_before_filter :authenticate!, only: :cor_preflight
|
skip_before_filter :authenticate!, only: :cor_preflight
|
||||||
|
|
||||||
before_filter :cor_filter
|
before_filter :cor_filter
|
||||||
before_filter :json_filter!
|
before_filter :json_filter!, except: :cor_preflight
|
||||||
|
|
||||||
def not_found
|
def not_found
|
||||||
head :not_found
|
head :not_found
|
||||||
|
Loading…
x
Reference in New Issue
Block a user