Commit 19070364

mo khan <mo@mokhan.ca>
2014-11-22 00:13:27
allow cors for api/*
1 parent 8e250fb
Changed files (1)
config/application.rb
@@ -36,7 +36,7 @@ module Cake
     config.middleware.use Rack::Cors do
       allow do
         origins "*"
-        resource "*", headers: :any, methods: [:get, :post, :put, :delete, :options]
+        resource "api/*", headers: :any, methods: [:get, :post, :put, :delete, :options]
       end
     end
     config.middleware.use ExceptionNotification::Rack, :email => {