Commit 6f1d2aefeaea2bdd0bf0b39296109d7abced761f
1 parent
70320e6c
Exists in
master
and in
21 other branches
api: fix cors resource url
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
config/application.rb
@@ -136,7 +136,7 @@ module Noosfero | @@ -136,7 +136,7 @@ module Noosfero | ||
136 | config.middleware.use Rack::Cors do | 136 | config.middleware.use Rack::Cors do |
137 | allow do | 137 | allow do |
138 | origins '*' | 138 | origins '*' |
139 | - resource 'api/*', :headers => :any, :methods => [:get, :post] | 139 | + resource '/api/*', :headers => :any, :methods => [:get, :post] |
140 | end | 140 | end |
141 | end | 141 | end |
142 | 142 |