X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/77519738715b21fbb4ea384c9b56ccc2d9fb4687..56db9ca2b7e2475cd8025630049fb4a4b824f2d9:/config/initializers/cors.rb 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