From e0cf5c6c3e2afbd4eb01a976d5906edc8a2c58bb Mon Sep 17 00:00:00 2001 From: mo khan Date: Sat, 22 Nov 2014 22:26:44 -0700 Subject: fix the CORS configuration. --- config/application.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/config/application.rb b/config/application.rb index 95e6a08a..53fd4e24 100644 --- a/config/application.rb +++ b/config/application.rb @@ -36,7 +36,8 @@ module Cake config.middleware.use Rack::Cors do allow do origins "*" - resource "api/*", headers: :any, methods: [:get, :post, :put, :delete, :options] + resource "/api/v2/*", headers: :any, methods: [:get, :post, :put, :delete, :options] + resource "/api/v2/*/*", headers: :any, methods: [:get, :post, :put, :delete, :options] end end config.middleware.use ExceptionNotification::Rack, :email => { -- cgit v1.2.3