Configure CORS to allow GET and POST to /oauth

This commit is contained in:
Tom Hughes 2012-11-16 22:28:52 +00:00
parent 1c5db113e2
commit 2cecfa7d01

View file

@ -8,6 +8,7 @@ require "rack/cors"
Rails.configuration.middleware.use Rack::Cors do
allow do
origins "*"
resource "/oauth/*", :headers => :any, :methods => [:get, :post]
resource "/api/*", :headers => :any, :methods => [:get, :post, :put, :delete]
end
end