diff --git a/config/application.rb b/config/application.rb index 6dc3285..084878d 100644 --- a/config/application.rb +++ b/config/application.rb @@ -136,7 +136,7 @@ module Noosfero config.middleware.use Rack::Cors do allow do origins '*' - resource 'api/*', :headers => :any, :methods => [:get, :post] + resource '/api/*', :headers => :any, :methods => [:get, :post] end end -- libgit2 0.21.2