From: Tom Hughes Date: Fri, 16 Nov 2012 22:28:52 +0000 (+0000) Subject: Configure CORS to allow GET and POST to /oauth X-Git-Tag: live~5187 X-Git-Url: https://git.openstreetmap.org/rails.git/commitdiff_plain/2cecfa7d01a8a38215b4c963f12221ebef3aff73?hp=1c5db113e215892ecff6090c571ffa1c4b9737db Configure CORS to allow GET and POST to /oauth --- diff --git a/config/initializers/cors.rb b/config/initializers/cors.rb index 6fbeb9161..9bbf937cf 100644 --- a/config/initializers/cors.rb +++ b/config/initializers/cors.rb @@ -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